1 #ifndef OSMSCOUT_UTIL_STOPCLOCK_H 2 #define OSMSCOUT_UTIL_STOPCLOCK_H 39 std::chrono::steady_clock::time_point start;
40 std::chrono::steady_clock::time_point stop;
45 StopClock(
const StopClock&) =
delete;
46 StopClock(StopClock&&) =
default;
48 StopClock& operator=(
const StopClock&) =
delete;
49 StopClock& operator=(StopClock&&) =
default;
53 double GetMilliseconds()
const;
54 std::chrono::steady_clock::duration GetDuration()
const;
56 bool IsSignificant()
const;
58 std::string ResultString()
const;
72 std::chrono::high_resolution_clock::time_point start;
73 std::chrono::high_resolution_clock::time_point stop;
77 StopClockNano(
const StopClockNano& other);
84 double GetNanoseconds()
const;
86 std::string ResultString()
const;
std::ostream & operator<<(std::ostream &stream, const DBId &o)
Definition: DBFileOffset.h:80
#define CLASS_FINAL
Definition: Compiler.h:26
#define OSMSCOUT_API
Definition: CoreImportExport.h:45