INTRODUCTION
Overview
Download and Install
Documentation
Publications

REPOSITORY
Libraries

DEVELOPER
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

gbxiceutilacfr::Timer Class Reference

A handy class that performs timing functions using Ice Time class. More...

#include <timer.h>

List of all members.

Public Member Functions

 Timer ()
 Sets elapsed time to zero.
 Timer (const IceUtil::Time &elapsedTime)
 Sets elapased time to the specified time, which can be positive or negative.
void restart ()
 Resets elapsed time to zero.
IceUtil::Time elapsed () const
 Returns time elapsed from last restart.
double elapsedMs () const
 Returns elapsed milliseconds as a double.
double elapsedSec () const
 Returns elapsed seconds as a double.


Detailed Description

A handy class that performs timing functions using Ice Time class.

Not thread-safe.

Call restart(), do something, then call elapsed() which returns the time elapsed since restart().

Can then use built-in functions to convert IceUtil::Time to timeval, double, millisec, etc.

Measures WallClockTime.


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

Generated for GearBox by  doxygen 1.4.5