Cadabra
Computer algebra system for field theory problems
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
Stopwatch Class Reference

#include <Stopwatch.hh>

Public Member Functions

 Stopwatch ()
 
void reset ()
 
void start ()
 
void stop ()
 
long seconds () const
 
long useconds () const
 
bool stopped () const
 

Private Member Functions

void checkpoint_ () const
 

Private Attributes

struct timeval tv1 tv2
 
struct timezone tz
 
long diffsec
 
long diffusec
 
bool stopped_
 

Friends

std::ostream & operator<< (std::ostream &, const Stopwatch &)
 

Constructor & Destructor Documentation

Stopwatch::Stopwatch ( )

Member Function Documentation

void Stopwatch::checkpoint_ ( ) const
private
void Stopwatch::reset ( )
long Stopwatch::seconds ( ) const
void Stopwatch::start ( )
void Stopwatch::stop ( )
bool Stopwatch::stopped ( ) const
long Stopwatch::useconds ( ) const

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const Stopwatch  
)
friend

Member Data Documentation

long Stopwatch::diffsec
mutableprivate
long Stopwatch::diffusec
mutableprivate
bool Stopwatch::stopped_
private
struct timeval tv1 Stopwatch::tv2
private
struct timezone Stopwatch::tz
private

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