spot 2.16
Loading...
Searching...
No Matches
Public Member Functions | List of all members
spot::process_timer Struct Reference

Struct used to start and stop both timer and stopwatch clocks. More...

#include <spot/misc/timer.hh>

Collaboration diagram for spot::process_timer:

Public Member Functions

void start ()
 Start both wall-clock and CPU timers.
 
void stop ()
 Stop both timers and record elapsed times.
 
double walltime () const
 Return elapsed wall time in seconds since the last start().
 
clock_t cputime (bool user, bool system, bool children, bool parent) const
 Return accumulated CPU ticks for selected time components.
 

Detailed Description

Struct used to start and stop both timer and stopwatch clocks.

Member Function Documentation

◆ cputime()

clock_t spot::process_timer::cputime ( bool  user,
bool  system,
bool  children,
bool  parent 
) const
inline

Return accumulated CPU ticks for selected time components.

References spot::timer::get_uscp().

◆ start()

void spot::process_timer::start ( )
inline

Start both wall-clock and CPU timers.

References spot::stopwatch::start(), and spot::timer::start().

◆ stop()

void spot::process_timer::stop ( )
inline

Stop both timers and record elapsed times.

References spot::stopwatch::stop(), and spot::timer::stop().

◆ walltime()

double spot::process_timer::walltime ( ) const
inline

Return elapsed wall time in seconds since the last start().


The documentation for this struct was generated from the following file:

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Fri Feb 27 2015 10:00:07 for spot by doxygen 1.9.8