LydiaSyft
Syft::Stopwatch Class Reference

Stopwatch for timing executions. More...

#include <Stopwatch.h>

Public Member Functions

 Stopwatch ()
 Create a stopwatch without starting it.
 
void start ()
 Start the stopwatch.
 
std::chrono::milliseconds stop ()
 Stop the stopwatch. More...
 

Detailed Description

Stopwatch for timing executions.

Member Function Documentation

◆ stop()

std::chrono::milliseconds Syft::Stopwatch::stop ( )

Stop the stopwatch.

Throws an exception if stopwatch hasn't been started since the last time it was stopped.

Returns
The time elapsed in ms between starting and stopping the stopwatch.

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