diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-09 05:16:19 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-09 05:16:19 +0200 |
commit | 1f1951218e715e12eaf5d8cd338b6e5459872acb (patch) | |
tree | d57c231a5794c98ed6c2063aa54cfe987da3f73a /main/debug.cpp | |
parent | 94f6748d5f5b9fdc3047022fe59d66028bde63f3 (diff) |
a
Diffstat (limited to 'main/debug.cpp')
-rw-r--r-- | main/debug.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/debug.cpp b/main/debug.cpp index b0d010b6..ae545678 100644 --- a/main/debug.cpp +++ b/main/debug.cpp @@ -28,9 +28,9 @@ void app::debug_callback(GL::DebugOutput::Source src, GL::DebugOutput::Type type if (str.starts_with("Buffer detailed info: ")) p = str.data() + sizeof("Buffer detailed info: ") - 1; - using millis = std::chrono::duration<double, std::milli>; - const auto t = std::chrono::duration_cast<millis>(clock.now() - t0).count(); - printf("[%-9.1f] ", t); + using seconds = std::chrono::duration<double>; + const auto t = std::chrono::duration_cast<seconds>(clock.now() - t0).count(); + printf("[%10.03f] ", t); switch (severity) { @@ -41,7 +41,7 @@ void app::debug_callback(GL::DebugOutput::Source src, GL::DebugOutput::Type type case High: std::fputs("ERROR ", stdout); break; default: std::fputs("????? ", stdout); break; } - printf("%6u: ", id); + printf("%6u ", id); std::puts(p); std::fflush(stdout); |