kernel: move nsec to libc

This commit is contained in:
2017-01-06 00:45:35 +01:00
parent 2508de40ea
commit 4676c65a3d
7 changed files with 59 additions and 29 deletions

View File

@@ -27,9 +27,9 @@ main(void)
uint64_t start, end;
char *msg;
start = sys_nsec();
start = sys_remove("#c/time");
sleep(1);
end = sys_nsec();
end = sys_remove("#c/time");
if (end <= start)
ret = 1;