Deepity
Ultra-fast, SIMD-accelerated Predictive Coding
Loading...
Searching...
No Matches
Timer Class Reference

Implementation by Alex: https://www.learncpp.com/cpp-tutorial/timing-your-code/. More...

#include <Timer.h>

Public Member Functions

void reset ()
 Restarts the stopwatch from now.
double elapsed () const
 Seconds elapsed since construction or the last reset().

Detailed Description

Implementation by Alex: https://www.learncpp.com/cpp-tutorial/timing-your-code/.

A minimal stopwatch: construct or reset() it, then read elapsed() at any later point for the number of seconds since.

Member Function Documentation

◆ elapsed()

double Timer::elapsed ( ) const
inline

Seconds elapsed since construction or the last reset().

◆ reset()

void Timer::reset ( )
inline

Restarts the stopwatch from now.


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