diff options
| author | dam <dam@gudinoff> | 2023-08-17 09:36:02 +0100 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2023-08-17 09:36:02 +0100 |
| commit | fa1b8ea54646f1a0f3eadef33e3a660b875cc1ff (patch) | |
| tree | 8104c1b4264ff6b7cbe2c6d693d176c8f7d933fe /unused.jai | |
| parent | 821ff8453d247d51922fcf11de36b2923b3171bc (diff) | |
| download | task-time-tracker-fa1b8ea54646f1a0f3eadef33e3a660b875cc1ff.tar.zst task-time-tracker-fa1b8ea54646f1a0f3eadef33e3a660b875cc1ff.zip | |
WIP Code cleanup.v2.0-alpha
Diffstat (limited to 'unused.jai')
| -rw-r--r-- | unused.jai | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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) { |
