Loading...
Searching...
No Matches
meshkit::detail::Timer Class Reference

Minimal std::chrono::steady_clock stopwatch with QElapsedTimer-style names. More...

#include <meshkit/detail/storage.hpp>

Collaboration diagram for meshkit::detail::Timer:

Public Member Functions

void start ()
 Record the current steady_clock time as the reference; call again to restart.
 
std::int64_t nsecsElapsed () const
 Time since the last start().
 

Detailed Description

Minimal std::chrono::steady_clock stopwatch with QElapsedTimer-style names.

No internal synchronization.

Member Function Documentation

◆ nsecsElapsed()

std::int64_t meshkit::detail::Timer::nsecsElapsed ( ) const
inline

Time since the last start().

Returns
Elapsed steady_clock time in nanoseconds. Before any start() the reference is the clock's epoch, so the value is meaningless.
Here is the caller graph for this function:

◆ start()

void meshkit::detail::Timer::start ( )
inline

Record the current steady_clock time as the reference; call again to restart.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: