Givaro 4.2.1
Timer Class Reference

Timer. More...

#include <givtimer.h>

Public Member Functions

 Timer ()
 
void clear ()
 Clear timer.
 
void start ()
 Start timer.
 
void stop ()
 Stop timer.
 
double usertime () const
 total amount of second spent in user mode.
 
double systime () const
 total amount of second spent in system mode.
 
double realtime () const
 real total amount of second spent.
 
double userElapsedTime ()
 User mode time spent since start.
 
double sysElapsedTime ()
 System mode time spent since start.
 
double realElapsedTime ()
 real total amount of second spent since start.
 
Timeroperator= (const Timer &T)
 
const Timer operator- (const Timer &T) const
 
const Timer operator- ()
 
const Timer operator+ (const Timer &T) const
 
const Timer operator/ (const double) const
 
Timeroperator+= (const Timer &T)
 
Timeroperator-= (const Timer &T)
 
Timeroperator/= (const double d)
 
std::ostream & print (std::ostream &) const
 
size_t count () const
 

Detailed Description

Constructor & Destructor Documentation

◆ Timer()

Timer ( )
inline

Member Function Documentation

◆ clear()

◆ start()

◆ stop()

◆ usertime()

double usertime ( ) const
inline

total amount of second spent in user mode.

Returns
the user time elapsed between the latest start() and the latest stop().
Precondition
stop() is called before.
Examples
examples/FiniteField/gfq_atomic.C, examples/FiniteField/zpz_atomic.C, and examples/Polynomial/pol_factor.C.

◆ systime()

double systime ( ) const
inline

total amount of second spent in system mode.

Returns
the system time elapsed between the latest start() and the latest stop().
Precondition
stop() is called before.

◆ realtime()

double realtime ( ) const
inline

real total amount of second spent.

Returns
the real total time elapsed between the latest start() and the latest stop().
Precondition
stop() is called before.

◆ userElapsedTime()

double userElapsedTime ( )
inline

User mode time spent since start.

A call to stop() is useless.

Returns
elpased time (in seconds) since start() in user mode.

◆ sysElapsedTime()

double sysElapsedTime ( )
inline

System mode time spent since start.

A call to stop() is useless.

Returns
elpased time (in seconds) since start() in system mode.

◆ realElapsedTime()

double realElapsedTime ( )
inline

real total amount of second spent since start.

A call to stop() is useless.

Returns
elpased time (in seconds) since start().

◆ operator=()

Timer & operator= ( const Timer & T)

◆ operator-() [1/2]

const Timer operator- ( const Timer & T) const

◆ operator-() [2/2]

const Timer operator- ( )

◆ operator+()

const Timer operator+ ( const Timer & T) const

◆ operator/()

const Timer operator/ ( const double nbiter) const

◆ operator+=()

Timer & operator+= ( const Timer & T)
inline

◆ operator-=()

Timer & operator-= ( const Timer & T)
inline

◆ operator/=()

Timer & operator/= ( const double d)
inline

◆ print()

std::ostream & print ( std::ostream & o) const

◆ count()

size_t count ( ) const
inline

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