#include <time.hpp>
Definition at line 17 of file time.hpp.
◆ Timer() [1/3]
| constexpr jlm::util::Timer::Timer |
( |
| ) |
|
|
inlineconstexpr |
◆ Timer() [2/3]
| jlm::util::Timer::Timer |
( |
const Timer & |
other | ) |
|
|
delete |
◆ Timer() [3/3]
| jlm::util::Timer::Timer |
( |
Timer && |
other | ) |
|
|
default |
◆ isRunning()
| bool jlm::util::Timer::isRunning |
( |
| ) |
const |
|
inlinenoexcept |
◆ ns()
| size_t jlm::util::Timer::ns |
( |
| ) |
const |
|
inline |
Retrieves the total time the timer has been running since the last reset. Requires the timer to not be running.
- Returns
- total timed runtime in wall clock nanoseconds
Definition at line 83 of file time.hpp.
◆ operator=() [1/2]
| Timer& jlm::util::Timer::operator= |
( |
const Timer & |
other | ) |
|
|
delete |
◆ operator=() [2/2]
| Timer& jlm::util::Timer::operator= |
( |
Timer && |
other | ) |
|
|
default |
◆ reset()
| void jlm::util::Timer::reset |
( |
| ) |
|
|
inlinenoexcept |
Discards any time counted thus far. If the timer is currently running, it stops.
Definition at line 43 of file time.hpp.
◆ start()
| void jlm::util::Timer::start |
( |
| ) |
|
|
inlinenoexcept |
Starts the timer, without resetting any previously counted time. A no-op if the timer is already running.
Definition at line 54 of file time.hpp.
◆ stop()
| void jlm::util::Timer::stop |
( |
| ) |
|
|
inlinenoexcept |
Stops the timer. The timer can be resumed again by calling start(). If the timer was already stopped, this is a no-op.
Definition at line 67 of file time.hpp.
◆ ElapsedTimeInNanoseconds_
| size_t jlm::util::Timer::ElapsedTimeInNanoseconds_ |
|
private |
◆ IsRunning_
| bool jlm::util::Timer::IsRunning_ |
|
private |
◆ Start_
| std::chrono::time_point<std::chrono::high_resolution_clock> jlm::util::Timer::Start_ |
|
private |
The documentation for this class was generated from the following file: