🚀 use ftime to calculate run time

This commit is contained in:
ValKmjolnir
2022-06-02 22:51:43 +08:00
parent 04ab09586b
commit 7ec8418740
5 changed files with 49 additions and 30 deletions
+11 -1
View File
@@ -23,4 +23,14 @@ var file={
eof: func(){return io.eof(fd);}
};
}
};
};
var find_all_files=func(path){
var dd=unix.opendir(path);
var res=[];
while(var n=unix.readdir(dd))
if(unix.isfile(path~"/"~n))
append(res,n);
unix.closedir(dd);
return res;
}