summaryrefslogtreecommitdiff
path: root/core/timer.h
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2026-07-31 04:04:37 +0200
committerPaul Oliver <contact@pauloliver.dev>2026-08-05 04:31:51 +0200
commit27061e4c4e723e16797453f473cff7148beecad3 (patch)
tree94b11e2b270939bda4ddc4a53b6a3f345dc92d06 /core/timer.h
parent8a4563d6d0c9e81fdaa42f6f760cae2b49cad431 (diff)
Adds curses UIHEADmaster
Diffstat (limited to 'core/timer.h')
-rw-r--r--core/timer.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/timer.h b/core/timer.h
new file mode 100644
index 0000000..8778831
--- /dev/null
+++ b/core/timer.h
@@ -0,0 +1,14 @@
+// file : core/timer.h
+// project : Salis-VM
+// author : Paul Oliver <contact@pauloliver.dev>
+
+#pragma once
+
+struct Timer {
+ uint64_t step_start;
+ struct timespec time_start;
+ float steps_per_sec;
+};
+
+void timer_reset(struct Timer *timer);
+void timer_measure(struct Timer *timer);