Ardour  9.0-pre0-380-gbbdb6b0e63
ArdourSurface::US2400::Timer Class Reference

#include <timer.h>

Public Member Functions

 Timer (bool shouldStart=true)
 
unsigned long start ()
 
unsigned long stop ()
 
unsigned long elapsed () const
 
unsigned long restart ()
 

Private Attributes

uint64_t _start
 
uint64_t _stop
 
bool running
 

Detailed Description

millisecond timer class.

Definition at line 40 of file surfaces/us2400/timer.h.

Constructor & Destructor Documentation

◆ Timer()

ArdourSurface::US2400::Timer::Timer ( bool  shouldStart = true)
inline

start the timer running if true, or just create the object if false.

Definition at line 48 of file surfaces/us2400/timer.h.

Member Function Documentation

◆ elapsed()

unsigned long ArdourSurface::US2400::Timer::elapsed ( ) const
inline

returns the number of milliseconds since start

Definition at line 76 of file surfaces/us2400/timer.h.

◆ restart()

unsigned long ArdourSurface::US2400::Timer::restart ( )
inline

Call stop and then start. Return the value from stop.

Definition at line 92 of file surfaces/us2400/timer.h.

◆ start()

unsigned long ArdourSurface::US2400::Timer::start ( void  )
inline

Start the timer running. Return the current timestamp, in milliseconds

Definition at line 57 of file surfaces/us2400/timer.h.

◆ stop()

unsigned long ArdourSurface::US2400::Timer::stop ( void  )
inline

returns the number of milliseconds since start also stops the timer running

Definition at line 67 of file surfaces/us2400/timer.h.

Member Data Documentation

◆ _start

uint64_t ArdourSurface::US2400::Timer::_start
private

Definition at line 100 of file surfaces/us2400/timer.h.

◆ _stop

uint64_t ArdourSurface::US2400::Timer::_stop
private

Definition at line 101 of file surfaces/us2400/timer.h.

◆ running

bool ArdourSurface::US2400::Timer::running
private

Definition at line 102 of file surfaces/us2400/timer.h.


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