Navigation

Main Page
Download
Support
Installation
Tutorial
Examples
Reference Manual
   Version 1.0.5new_solver
   Version 1.0.5dev
      Class Index
      File List
   Version 1.0.5b
   Version 1.0.4dev
   Version 1.0.4
Publications


Hosted by Get Ion Beam Simulator at SourceForge.net. Fast, secure and Free Open Source software downloads

Timer Class Reference

Class for measuring code runtime in cpu time and realtime. More...

#include <timer.hpp>

List of all members.

Public Member Functions

 Timer ()
 Construct and start timer.
 ~Timer ()
 Destruct timer.
void start (void)
 Start timer.
void stop (void)
 Stop timer.
double get_real_time (void) const
 Get real time elapsed in seconds.
double get_cpu_time (void) const
 Get cpu time elapsed in seconds.

Friends

std::ostream & operator<< (std::ostream &os, const Timer &t)
 Print report of elapsed time to stream.

Detailed Description

Class for measuring code runtime in cpu time and realtime.


Constructor & Destructor Documentation

Timer::Timer (  ) 

Construct and start timer.

Timer::~Timer (  )  [inline]

Destruct timer.


Member Function Documentation

double Timer::get_cpu_time ( void   )  const

Get cpu time elapsed in seconds.

double Timer::get_real_time ( void   )  const

Get real time elapsed in seconds.

void Timer::start ( void   ) 

Start timer.

void Timer::stop ( void   ) 

Stop timer.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Timer t 
) [friend]

Print report of elapsed time to stream.


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


Reference manual for Ion Beam Simulator 1.0.5dev
Generated by Doxygen 1.7.1 on Mon Feb 6 2012 15:07:17.