diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-10-02 15:55:21 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-11-06 10:16:52 +0100 |
commit | 69564cc886f37cf3f97145d199bd0bbca8b16523 (patch) | |
tree | c0796eedf7cb60aac03c8cffa394882840b97b9f /src | |
parent | bbf16b2b1dc3692298b3b33d5afaa72cab7e120d (diff) | |
download | qtlocation-mapboxgl-69564cc886f37cf3f97145d199bd0bbca8b16523.tar.gz |
[core] fix logging so we don't use strings as a formatter
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/util/stopwatch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/util/stopwatch.cpp b/src/mbgl/util/stopwatch.cpp index c4b4fbb330..77779338ae 100644 --- a/src/mbgl/util/stopwatch.cpp +++ b/src/mbgl/util/stopwatch.cpp @@ -23,7 +23,7 @@ stopwatch::stopwatch(const std::string &name_, EventSeverity severity_, Event ev void stopwatch::report(const std::string &name_) { Duration duration = Clock::now() - start; - Log::Record(severity, event, name_ + ": " + util::toString(std::chrono::duration_cast<std::chrono::milliseconds>(duration).count()) + "ms"); + Log::Record(severity, event, "%s: %fms", name_.c_str(), std::chrono::duration<float, std::chrono::milliseconds::period>(duration).count()); start += duration; } |