pass::stopwatch Class Reference

#include <stopwatch.hpp>

Public Member Functions

void start () noexcept
 
std::chrono::nanoseconds get_elapsed () const noexcept
 

Private Attributes

std::chrono::steady_clock::time_point start_time
 

Detailed Description

A stopwatch measures the time since its creation.

Member Function Documentation

◆ get_elapsed()

std::chrono::nanoseconds pass::stopwatch::get_elapsed ( ) const
noexcept

The time in nanoseconds (10^-9) since this object was created.

Here is the caller graph for this function:

◆ start()

void pass::stopwatch::start ( )
noexcept

Creat time of the object and start it.

Here is the caller graph for this function:

Member Data Documentation

◆ start_time

std::chrono::steady_clock::time_point pass::stopwatch::start_time
private

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