Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Data Structures
OSD_Timer.hxx File Reference
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Macro.hxx>
#include <Standard_Real.hxx>
#include <OSD_Chronometer.hxx>
#include <Standard_OStream.hxx>
#include <Standard_Integer.hxx>

Data Structures

class  OSD_Timer
 Working on heterogeneous platforms
we need to use the system call gettimeofday.
This function is portable and it measures ELAPSED
time and CPU time in seconds and microseconds.
Example: OSD_Timer aTimer;
aTimer.Start(); // Start the timers (t1).
..... // Do something.
aTimer.Stop(); // Stop the timers (t2).
aTimer.Show(); // Give the elapsed time between t1 and t2.
// Give also the process CPU time between
// t1 and t2.
More...