summaryrefslogtreecommitdiff
path: root/macro.h
diff options
context:
space:
mode:
Diffstat (limited to 'macro.h')
-rw-r--r--macro.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/macro.h b/macro.h
new file mode 100644
index 0000000..80998e5
--- /dev/null
+++ b/macro.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#define start_timer(name) \
+ std::chrono::steady_clock::time_point begin_ ## name = \
+ std::chrono::steady_clock::now(); \
+ \
+
+#define stop_timer(name) \
+std::chrono::steady_clock::time_point end_ ## name = \
+ std::chrono::steady_clock::now(); \
+