mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:57:46 +00:00
Utilities: Use elapsed_milliseconds() instead of elapsed()
No behavior change.
This commit is contained in:
parent
197c5729d1
commit
6f2e62ba2a
3 changed files with 8 additions and 8 deletions
|
@ -64,7 +64,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
outln("failed.");
|
||||
return 1;
|
||||
}
|
||||
outln("done in {}ms", timer.elapsed());
|
||||
outln("done in {}ms", timer.elapsed_milliseconds());
|
||||
|
||||
auto pages = count / PAGE_SIZE;
|
||||
auto step = pages / 10;
|
||||
|
@ -76,7 +76,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
ptr[i * PAGE_SIZE] = 1;
|
||||
|
||||
if (i != 0 && (i % step) == 0) {
|
||||
auto ms = timer2.elapsed();
|
||||
auto ms = timer2.elapsed_milliseconds();
|
||||
if (ms == 0)
|
||||
ms = 1;
|
||||
|
||||
|
@ -87,7 +87,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
timer2.start();
|
||||
}
|
||||
}
|
||||
outln("done in {}ms", timer.elapsed());
|
||||
outln("done in {}ms", timer.elapsed_milliseconds());
|
||||
|
||||
outln("sleeping for ten seconds...");
|
||||
for (int i = 0; i < 10; i++) {
|
||||
|
@ -99,7 +99,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
outln("freeing memory...");
|
||||
timer.start();
|
||||
free(ptr);
|
||||
outln("done in {}ms", timer.elapsed());
|
||||
outln("done in {}ms", timer.elapsed_milliseconds());
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue