sptk2 logo
SPTK Home Page
Public Member Functions | List of all members
sptk::StopWatch Class Reference

#include <StopWatch.h>

Public Member Functions

void start ()
 
void stop ()
 
double seconds () const
 
double milliseconds () const
 

Detailed Description

Simple stopwatch class useful in measuring time intervals

Member Function Documentation

◆ milliseconds()

double sptk::StopWatch::milliseconds ( ) const

Get difference between stopwatch start and stop times in seconds

Returns
interval in seconds

◆ seconds()

double sptk::StopWatch::seconds ( ) const

Get difference between stopwatch start and stop times in seconds

Returns
interval in seconds

◆ start()

void sptk::StopWatch::start ( )

Set stopwatch start time

◆ stop()

void sptk::StopWatch::stop ( )

Set stopwatch stop time


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

Fri Oct 14 2022 09:58:45: SPTK 5.4.1