diff options
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) { |
