From fa1b8ea54646f1a0f3eadef33e3a660b875cc1ff Mon Sep 17 00:00:00 2001 From: dam Date: Thu, 17 Aug 2023 09:36:02 +0100 Subject: WIP Code cleanup. --- unused.jai | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'unused.jai') 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) { -- cgit v1.2.3