SbElapsedTime Class Reference
[Basics]

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

#include <Inventor/SbElapsedTime.h>

List of all members.

Public Member Functions

 SbElapsedTime ()
void reset ()
double getElapsed () const
SbTime getElapsedTime () const

Friends

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

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).


Constructor & Destructor Documentation

SbElapsedTime::SbElapsedTime (  ) 

Constructor (initializes timer).


Member Function Documentation

double SbElapsedTime::getElapsed (  )  const

Gets elapsed time in seconds.

SbTime SbElapsedTime::getElapsedTime (  )  const

Gets elapsed time.

void SbElapsedTime::reset (  ) 

Resets timer.


Friends And Related Function Documentation

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:

Open Inventor Toolkit reference manual, generated on 8 Apr 2021
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/