CElapsedTime

Name

CElapsedTime -- Subsecond measurement of elapsed times.

Synopsis


#include <CElapsedTime>
class CElapsedTime
{
public:
    CElapsedTime();
    void start();
    double measure() const;

};

        

DESCRIPTION

This class supports POSIX-.1-2001 conforming sub second interval measurement. Note that the actual resolution of this timing is dependent on the resolution of the underlying system clock used by gettimeofday(3).

Constructing the object or invoking start on a constructed object sets a start time. Subsequent calls to measure return the elapsed time since that start time in double precision seconds.