NeoPZ
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
Timer Class Reference

#include <timer.h>

Public Member Functions

 Timer ()
 
 Timer (double floating_ops1)
 
 ~Timer ()
 
void start ()
 
void stop ()
 
double elapsedSeconds ()
 
double sec ()
 
void report (char const *what) const
 

Private Types

enum  { uninitialized, running, stopped }
 

Private Member Functions

 Timer (Timer &)
 
void operator= (Timer &)
 
double systemTime ()
 

Private Attributes

enum Timer:: { ... }  state_
 
double floating_ops
 
struct rusage resourceUsage_
 
double t1_
 
double t2_
 

Detailed Description

Definition at line 10 of file timer.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
uninitialized 
running 
stopped 

Definition at line 67 of file timer.h.

Constructor & Destructor Documentation

◆ Timer() [1/3]

Timer::Timer ( )
inline

Definition at line 13 of file timer.h.

◆ Timer() [2/3]

Timer::Timer ( double  floating_ops1)
inline

Definition at line 14 of file timer.h.

◆ ~Timer()

Timer::~Timer ( )
inline

Definition at line 15 of file timer.h.

◆ Timer() [3/3]

Timer::Timer ( Timer )
inlineprivate

Definition at line 54 of file timer.h.

Member Function Documentation

◆ elapsedSeconds()

double Timer::elapsedSeconds ( )
inline

◆ operator=()

void Timer::operator= ( Timer )
inlineprivate

Definition at line 55 of file timer.h.

◆ report()

void Timer::report ( char const *  what) const
inline

Definition at line 39 of file timer.h.

◆ sec()

double Timer::sec ( )
inline

Definition at line 34 of file timer.h.

◆ start()

void Timer::start ( )
inline

◆ stop()

void Timer::stop ( )
inline

◆ systemTime()

double Timer::systemTime ( )
inlineprivate

Definition at line 57 of file timer.h.

Member Data Documentation

◆ floating_ops

double Timer::floating_ops
private

Definition at line 69 of file timer.h.

◆ resourceUsage_

struct rusage Timer::resourceUsage_
private

Definition at line 71 of file timer.h.

◆ state_

enum { ... } Timer::state_

◆ t1_

double Timer::t1_
private

Definition at line 73 of file timer.h.

◆ t2_

double Timer::t2_
private

Definition at line 73 of file timer.h.


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