summaryrefslogtreecommitdiff
path: root/zen/perf.h
diff options
context:
space:
mode:
Diffstat (limited to 'zen/perf.h')
-rwxr-xr-xzen/perf.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/zen/perf.h b/zen/perf.h
index 72b57f52..2006bdab 100755
--- a/zen/perf.h
+++ b/zen/perf.h
@@ -19,6 +19,13 @@
#define PERF_STOP perfTest.showResult();
//###########################################################################
+/* Example: Aggregated function call time:
+
+ static zen::PerfTimer timer;
+ timer.resume();
+ ZEN_ON_SCOPE_EXIT(timer.pause());
+*/
+
namespace zen
{
class PerfTimer
bgstack15