summaryrefslogtreecommitdiffstats
path: root/Row.h
diff options
context:
space:
mode:
authorExplorer09 <explorer09@gmail.com>2024-04-03 00:16:04 +0800
committercgzones <cgzones@googlemail.com>2024-04-05 19:27:59 +0200
commitae932b4fa980acb8c80946d098c79e2ab3611d3f (patch)
treef871cad5895aeee32b7f7d0e30a1e9bcc535ae06 /Row.h
parent24b1513296fd61722166625ad46be1c56a5efc44 (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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Row.h b/Row.h
index f67c6103..6d882909 100644
--- a/Row.h
+++ b/Row.h
@@ -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);

© 2014-2024 Faster IT GmbH | imprint | privacy policy