summaryrefslogtreecommitdiffstats
path: root/pcitool/formaters.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-12-13 22:21:24 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-12-13 22:21:24 +0100
commite43e3c44e9dee571c11a0fed16c27dff177d8c38 (patch)
tree6bb4c2f83e4431a0d2cca4899e38f08a4713b79e /pcitool/formaters.h
parent8ce8c60d7b335d4c1b64a9c726665759a6dd17ba (diff)
downloadpcitool-e43e3c44e9dee571c11a0fed16c27dff177d8c38.tar.gz
pcitool-e43e3c44e9dee571c11a0fed16c27dff177d8c38.tar.bz2
pcitool-e43e3c44e9dee571c11a0fed16c27dff177d8c38.tar.xz
pcitool-e43e3c44e9dee571c11a0fed16c27dff177d8c38.zip
Do event counting when rawcallback is used to stream the data
Diffstat (limited to 'pcitool/formaters.h')
-rw-r--r--pcitool/formaters.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/pcitool/formaters.h b/pcitool/formaters.h
new file mode 100644
index 0000000..c854da5
--- /dev/null
+++ b/pcitool/formaters.h
@@ -0,0 +1,12 @@
+#ifndef _PCITOOL_FORMATERS_H
+#define _PCITOOL_FORMATERS_H
+
+void PrintTime(size_t duration);
+void PrintNumber(size_t num);
+void PrintSize(size_t num);
+void PrintPercent(size_t num, size_t total);
+char *GetPrintSize(char *str, size_t size);
+
+
+#endif /* _PCITOOL_FORMATERS_H */
+