Navigation

Main Page
Download
Support
Installation
Tutorial
Examples
Reference Manual
   Version 1.0.6dev
      Class Index
      File List
   Version 1.0.6
   Version 1.0.5new_solver
   Version 1.0.5dev
   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

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

#include <timer.hpp>

Public Member Functions

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

Friends

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

Detailed Description

Class for measuring code runtime in cpu time and realtime.

Constructor & Destructor Documentation

◆ Timer()

Timer::Timer ( )

Construct and start timer.

◆ ~Timer()

Timer::~Timer ( )
inline

Destruct timer.

Member Function Documentation

◆ get_cpu_time()

double Timer::get_cpu_time ( void  ) const

Get cpu time elapsed in seconds.

◆ get_real_time()

double Timer::get_real_time ( void  ) const

Get real time elapsed in seconds.

◆ start()

void Timer::start ( void  )

Start timer.

◆ stop()

void Timer::stop ( void  )

Stop timer.

Friends And Related Function Documentation

◆ operator<<

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 files:


Reference manual for Ion Beam Simulator 1.0.6dev
Generated by Doxygen 1.9.1 on Thu Sep 11 2025 09:37:24.