7 #include "../time_span.h" 12 namespace diagnostics {
58 static int64 frequency() noexcept;
64 static bool is_high_resolution() noexcept;
86 int64 elapsed_milliseconds()
const noexcept;
93 int64 elapsed_nanoseconds()
const noexcept;
103 int64 elapsed_ticks()
const noexcept;
108 bool is_running()
const noexcept;
116 static std::chrono::nanoseconds get_timestamp() noexcept;
120 static int64 get_timestamp_milliseconds() noexcept;
124 static int64 get_timestamp_nanoseconds() noexcept;
128 static int64 get_timestamp_ticks() noexcept;
132 void reset() noexcept;
136 void restart() noexcept;
145 void start() noexcept;
161 void stop() noexcept;
166 bool running_ =
false;
Stopping of a logical operation.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Provides a set of methods and properties that you can use to accurately measure elapsed time...
Definition: stopwatch.h:34
Starting of a logical operation.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
Represents a time interval.
Definition: time_span.h:26
int_least64_t int64
Represents a 64-bit signed integer.
Definition: types.h:140