Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
SbElapsedTime Class Reference

VSG extension Class for measuring elapsed time with high resolution. More...

#include <Inventor/SbElapsedTime.h>

Public Member Functions

 SbElapsedTime ()
 Constructor (initializes timer)
 
void reset ()
 Resets timer.
 
double getElapsed () const
 Gets elapsed time in seconds.
 
SbTime getElapsedTime () const
 Gets elapsed time.
 

Friends

std::ostream & operator<< (std::ostream &os, const SbElapsedTime &t)
 Writes the time to the specified output stream.
 

Detailed Description

VSG extension Class for measuring elapsed time with high resolution.

This measures elapsed time in seconds. It uses the highest resolution timer available on the system, to allow measuring very short intervals. There is no guarantee the timer resolution will be better than SbTime (which is used if no better method is available).

Definition at line 45 of file SbElapsedTime.h.

Constructor & Destructor Documentation

◆ SbElapsedTime()

SbElapsedTime::SbElapsedTime ( )

Constructor (initializes timer)

Member Function Documentation

◆ getElapsed()

double SbElapsedTime::getElapsed ( ) const

Gets elapsed time in seconds.

◆ getElapsedTime()

SbTime SbElapsedTime::getElapsedTime ( ) const

Gets elapsed time.

◆ reset()

void SbElapsedTime::reset ( )

Resets timer.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const SbElapsedTime t 
)
friend

Writes the time to the specified output stream.


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