summaryrefslogtreecommitdiff
path: root/macro.h
diff options
context:
space:
mode:
authorNikita Kostovsky <luntik2012@gmail.com>2024-11-09 17:26:11 +0100
committerNikita Kostovsky <luntik2012@gmail.com>2024-11-09 17:26:11 +0100
commit053237b9c91f1b5892782c1c4b2eb50cc8aeadfd (patch)
treeab3d3d2e896c7c71228bdb62c4fd4364a1364347 /macro.h
Initial commit
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(); \
+