mirror of
https://github.com/zinchenko291/os-course.git
synced 2026-09-12 20:09:58 +05:00
Change ns to ms
This commit is contained in:
parent
6e07455d7a
commit
de90d69a6e
@ -139,7 +139,8 @@ static int run_one(const Cmd* c) {
|
||||
waitpid(pid, &st, 0);
|
||||
long long t1 = nsec_now();
|
||||
|
||||
fprintf(stderr, "time_ns=%lld\n", (t1 - t0));
|
||||
double elapsed_ms = (double)(t1 - t0) / 1000000.0;
|
||||
fprintf(stderr, "time_ms=%.3f\n", elapsed_ms);
|
||||
|
||||
if (WIFEXITED(st))
|
||||
return WEXITSTATUS(st);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user