diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-06-04 20:23:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-04 20:23:41 +0200 |
| commit | 4838f6b5428293d96b31952a65a02af04d2bbefa (patch) | |
| tree | 80af72759bd02be9e3b00e19e3da37a57532dcab /src/timings.cpp | |
| parent | bd13bdc3918fcbc8c895f426bc57a612a5ac69f0 (diff) | |
| parent | b0d050dd90561c466a800dd4b7e5bb6d6bcaa499 (diff) | |
Merge pull request #5280 from Feoramund/fix-4642
Print timings to stderr instead of stdout
Diffstat (limited to 'src/timings.cpp')
| -rw-r--r-- | src/timings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timings.cpp b/src/timings.cpp index 3f8402b36..f6e86867f 100644 --- a/src/timings.cpp +++ b/src/timings.cpp @@ -197,7 +197,7 @@ gb_internal void timings_print_all(Timings *t, TimingUnit unit = TimingUnit_Mill f64 total_time = time_stamp(t->total, t->freq, unit); - gb_printf("%.*s%.*s - % 9.3f %s - %6.2f%%\n", + gb_printf_err("%.*s%.*s - % 9.3f %s - %6.2f%%\n", LIT(t->total.label), cast(int)(max_len-t->total.label.len), SPACES, total_time, @@ -207,7 +207,7 @@ gb_internal void timings_print_all(Timings *t, TimingUnit unit = TimingUnit_Mill for_array(i, t->sections) { TimeStamp ts = t->sections[i]; f64 section_time = time_stamp(ts, t->freq, unit); - gb_printf("%.*s%.*s - % 9.3f %s - %6.2f%%\n", + gb_printf_err("%.*s%.*s - % 9.3f %s - %6.2f%%\n", LIT(ts.label), cast(int)(max_len-ts.label.len), SPACES, section_time, |