diff options
author | Explorer09 <explorer09@gmail.com> | 2024-04-03 00:16:04 +0800 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2024-04-05 19:27:59 +0200 |
commit | ae932b4fa980acb8c80946d098c79e2ab3611d3f (patch) | |
tree | f871cad5895aeee32b7f7d0e30a1e9bcc535ae06 /Row.h | |
parent | 24b1513296fd61722166625ad46be1c56a5efc44 (diff) |
New Row_printNanoseconds() function
It prints the time in one of these formats: nanoseconds, "fraction of
seconds", "minutes + seconds + milliseconds". If the total time is
greater than 10 minutes, it uses Row_printTime() to print higher time
units.
Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
Diffstat (limited to 'Row.h')
-rw-r--r-- | Row.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -154,6 +154,9 @@ void Row_printCount(RichString* str, unsigned long long number, bool coloring); /* Takes time in hundredths of a seconds. Prints 9 columns. */ void Row_printTime(RichString* str, unsigned long long totalHundredths, bool coloring); +/* Takes time in nanoseconds. Prints 9 columns. */ +void Row_printNanoseconds(RichString* str, unsigned long long totalNanoseconds, bool coloring); + /* Takes rate in bare unit (base 1024) per second. Prints 12 columns. */ void Row_printRate(RichString* str, double rate, bool coloring); |