Assignments Assignments

Public Member Functions | Private Attributes | List of all members
Util::Timer Class Reference

`#include <timer.h>`

## Public Member Functions
| Timer (void)
double | elapsed (void) const
void | reset (void)

## Private Attributes
std::chrono::high_resolution_clock::time_point | _start

## Detailed Description

This class represents a timer.

## Constructor & Destructor Documentation

## ◆ Timer()

Util::Timer::Timer | ( | void |  | ) |
| inline

The default constructor

## Member Function Documentation

## ◆ elapsed()

double Util::Timer::elapsed | ( | void |  | ) | const
| inline

This method returns the amount of time elapsed since the timer was constructed.

## ◆ reset()

void Util::Timer::reset | ( | void |  | ) |
| inline

Reset the timer

## Member Data Documentation

## ◆ _start

std::chrono::high_resolution_clock::time_point Util::Timer::_start
| private

The time when the object was constructed

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

- Assignments/Util/timer.h