AuxPort 0.2
Modules for Audio Software Development
Loading...
Searching...
No Matches
AuxPort::Timer Class Reference

Simple Timer used for Benchmarking. More...

#include <AuxTime.h>

Public Types

enum  Type { nano , milli , micro , seconds }
 Specifies the unit to display time in. More...
 

Public Member Functions

 Timer (const Timer &timer)=default
 
void start ()
 Use this function to Start the timer.
 
void stop ()
 Use this function to Stop the timer.
 
void show (const Type &type=Type::micro)
 Logs the Time Ellapsed onto the console.
 
bool stillRunning ()
 Determines whether a timer is still Running.
 
long long getEllapsedTime (const Type &type=Type::micro)
 Returns the ellapsed time.
 

Detailed Description

Simple Timer used for Benchmarking.

Definition at line 52 of file AuxTime.h.

Member Enumeration Documentation

◆ Type

Specifies the unit to display time in.

Definition at line 58 of file AuxTime.h.

Constructor & Destructor Documentation

◆ Timer()

AuxPort::Timer::Timer ( )

Definition at line 43 of file AuxTime.cpp.

Member Function Documentation

◆ getEllapsedTime()

long long AuxPort::Timer::getEllapsedTime ( const Type & type = Type::micro)

Returns the ellapsed time.

Definition at line 84 of file AuxTime.cpp.

◆ show()

void AuxPort::Timer::show ( const Type & type = Type::micro)

Logs the Time Ellapsed onto the console.

Definition at line 63 of file AuxTime.cpp.

◆ start()

void AuxPort::Timer::start ( )

Use this function to Start the timer.

Definition at line 50 of file AuxTime.cpp.

◆ stillRunning()

bool AuxPort::Timer::stillRunning ( )

Determines whether a timer is still Running.

Definition at line 79 of file AuxTime.cpp.

◆ stop()

void AuxPort::Timer::stop ( )

Use this function to Stop the timer.

Definition at line 56 of file AuxTime.cpp.


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