mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:37:44 +00:00
Stopwatch: Print the result in decimal instead of hexadecimal.
This commit is contained in:
parent
4506e3a085
commit
73f3e05ebb
2 changed files with 2 additions and 2 deletions
|
@ -282,7 +282,7 @@ public:
|
||||||
SplitQword end;
|
SplitQword end;
|
||||||
read_tsc(end.lsw, end.msw);
|
read_tsc(end.lsw, end.msw);
|
||||||
uint64_t diff = end.qw - m_start.qw;
|
uint64_t diff = end.qw - m_start.qw;
|
||||||
dbgprintf("Stopwatch(%s): %q ticks\n", m_name, diff);
|
dbgprintf("Stopwatch(%s): %Q ticks\n", m_name, diff);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -26,7 +26,7 @@ public:
|
||||||
SplitQword end;
|
SplitQword end;
|
||||||
read_tsc(&end.lsw, &end.msw);
|
read_tsc(&end.lsw, &end.msw);
|
||||||
uint64_t diff = end.qw - m_start.qw;
|
uint64_t diff = end.qw - m_start.qw;
|
||||||
dbgprintf("Stopwatch(%s): %q ticks\n", m_name, diff);
|
dbgprintf("Stopwatch(%s): %Q ticks\n", m_name, diff);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue