aboutsummaryrefslogtreecommitdiff
path: root/unused.jai
diff options
context:
space:
mode:
authordam <dam@gudinoff>2023-08-17 09:36:02 +0100
committerdam <dam@gudinoff>2023-08-17 09:36:02 +0100
commitfa1b8ea54646f1a0f3eadef33e3a660b875cc1ff (patch)
tree8104c1b4264ff6b7cbe2c6d693d176c8f7d933fe /unused.jai
parent821ff8453d247d51922fcf11de36b2923b3171bc (diff)
downloadtask-time-tracker-2.0-alpha.tar.zst
task-time-tracker-2.0-alpha.zip
WIP Code cleanup.v2.0-alpha
Diffstat (limited to 'unused.jai')
-rw-r--r--unused.jai12
1 files changed, 12 insertions, 0 deletions
diff --git a/unused.jai b/unused.jai
index 97d9f88..9e05904 100644
--- a/unused.jai
+++ b/unused.jai
@@ -1,5 +1,17 @@
auto_release_temp(); // TODO Needs to be tested.
print(">%<", S64_MIN + delta, to_standard_error = true);
+
+// MEASURE PERFORMANCE
+{
+ #import "Basic";
+ start := current_time_monotonic();
+ // Code to measure.
+ stop := current_time_monotonic();
+ print("Measured % ns.\n", to_nanoseconds(stop-start));
+
+ // Cumulative average:
+ CA_n+1 = (x_n+1 + n*CA_n ) / (n + 1)
+}
// TODO DEBUG
print_owner_allocator :: (tag: string, memory: *void) {