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