libigl v2.5.0
Loading...
Searching...
No Matches
igl::Timer Class Reference

Simple timer class. More...

#include <Timer.h>

Public Member Functions

 Timer ()
 default constructor
 
 ~Timer ()
 
void start ()
 start timer
 
void stop ()
 stop the timer
 
double getElapsedTime ()
 get elapsed time in second
 
double getElapsedTimeInSec ()
 get elapsed time in second (same as getElapsedTime)
 
double getElapsedTimeInMilliSec ()
 get elapsed time in milli-second
 
double getElapsedTimeInMicroSec ()
 get elapsed time in micro-second
 

Detailed Description

Simple timer class.

Constructor & Destructor Documentation

◆ Timer()

igl::Timer::Timer ( )
inline

default constructor

◆ ~Timer()

igl::Timer::~Timer ( )
inline

Member Function Documentation

◆ start()

void igl::Timer::start ( )
inline

start timer

◆ stop()

void igl::Timer::stop ( )
inline

stop the timer

◆ getElapsedTime()

double igl::Timer::getElapsedTime ( )
inline

get elapsed time in second

Returns
time in seconds

◆ getElapsedTimeInSec()

double igl::Timer::getElapsedTimeInSec ( )
inline

get elapsed time in second (same as getElapsedTime)

Returns
time

◆ getElapsedTimeInMilliSec()

double igl::Timer::getElapsedTimeInMilliSec ( )
inline

get elapsed time in milli-second

Returns
time

◆ getElapsedTimeInMicroSec()

double igl::Timer::getElapsedTimeInMicroSec ( )
inline

get elapsed time in micro-second

Returns
time

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