63 void reset(
bool startAfterReset =
false);
72 bool isRunning()
const;
75 using time_point = std::chrono::high_resolution_clock::time_point;
76 using duration = std::chrono::duration<agx::Real64, std::milli>;
101 m_start = std::chrono::high_resolution_clock::now();
110 time_point
end = std::chrono::high_resolution_clock::now();
111 duration elapsed =
end - m_start;
119 m_total = duration::zero();
137 time_point now = std::chrono::high_resolution_clock::now();
138 duration elapsed = now - m_start;
139 duration total = m_total + elapsed;
140 return total.count();
144 return m_total.count();
The HighAccurayTimer class can replace the regular Timer class in high level applications where the n...
Real64 getTime() const
Report total elapsed time since start in milliseconds, excluding intervals when the timer was suspend...
void start()
Starts the HighAccuracyTimer.
bool isRunning() const
Return true if running.
void reset(bool startAfterReset=false)
Clear all data and optionally restart the timer.
HighAccuracyTimer(bool startImmediately=false)
Creates a HighAccuracyTimer.
void stop()
Stops the HighAccuracyTimer.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
LinearProbingHashSetImplementation< KeyT, HashT >::iterator end(LinearProbingHashSetImplementation< KeyT, HashT > &set)