diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-05-13 15:41:22 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-05-13 17:24:22 +0200 |
commit | cd65a43855f33555eca5f3e3ad5d37661253209f (patch) | |
tree | d83b63f4baeb3672c4909a08b14783c717b74681 /bin | |
parent | c1dde52c73061a49d576454a9ab4739e72561ca6 (diff) | |
download | qtlocation-mapboxgl-cd65a43855f33555eca5f3e3ad5d37661253209f.tar.gz |
[core] move from microsecond precision timestamp to integer second precision
Diffstat (limited to 'bin')
-rw-r--r-- | bin/offline.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/offline.cpp b/bin/offline.cpp index ddad1fe41f..502561d0a1 100644 --- a/bin/offline.cpp +++ b/bin/offline.cpp @@ -70,7 +70,7 @@ int main(int argc, char *argv[]) { : region(region_), fileSource(fileSource_), loop(loop_), - start(SystemClock::now()) { + start(util::now()) { } void statusChanged(OfflineRegionStatus status) override { @@ -82,7 +82,7 @@ int main(int argc, char *argv[]) { std::string bytesPerSecond = "-"; - auto elapsedSeconds = (SystemClock::now() - start) / 1s; + auto elapsedSeconds = (util::now() - start) / 1s; if (elapsedSeconds != 0) { bytesPerSecond = util::toString(status.completedResourceSize / elapsedSeconds); } @@ -111,7 +111,7 @@ int main(int argc, char *argv[]) { OfflineRegion& region; DefaultFileSource& fileSource; util::RunLoop& loop; - SystemTimePoint start; + Timestamp start; }; static auto stop = [&] { |