aboutsummaryrefslogtreecommitdiff
path: root/unused.jai
diff options
context:
space:
mode:
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) {