Class nebula::util::Stopwatch
ClassList > nebula > util > Stopwatch
A stop watch for performance measurements. Starts automatically on construction.
#include <stopwatch.hpp>
Public Functions
Type | Name |
---|---|
Stopwatch () Constructs and starts the stopwatch. |
|
uint64_t | elapsed_ns () const Returns elapsed time in nanoseconds since last reset or construction. |
void | reset () Resets the start time to the current moment. |
Public Functions Documentation
function Stopwatch
Constructs and starts the stopwatch.
inline nebula::util::Stopwatch::Stopwatch ()
function elapsed_ns
Returns elapsed time in nanoseconds since last reset or construction.
inline uint64_t nebula::util::Stopwatch::elapsed_ns () const
function reset
Resets the start time to the current moment.
inline void nebula::util::Stopwatch::reset ()
The documentation for this class was generated from the following file nebula_common/include/nebula_common/util/stopwatch.hpp