Public Member Functions

OpenTissue::utility::Timer< real_type > Class Template Reference

#include <utility_timer.h>

List of all members.

Public Member Functions

void start ()
void stop ()
real_type operator() () const

Detailed Description

template<typename real_type>
class OpenTissue::utility::Timer< real_type >

High Resoultion Timer. Based on http://www-106.ibm.com/developerworks/library/l-rt1/

RunTime: High-performance programming techniques on Linux and Windows 2000 Setting up timing routines by Edward G. Bradford (egb@us.ibm.com) Senior Programmer, IBM 01 Apr 2001

Example usage (We recommand doubles):

Timer<double> timer;

timer.start() ... timer.stop() std::cout << "It took " << timer() << " seconds to do it" << std::endl;


Member Function Documentation

template<typename real_type>
real_type OpenTissue::utility::Timer< real_type >::operator() (  )  const [inline]
template<typename real_type>
void OpenTissue::utility::Timer< real_type >::start (  )  [inline]
template<typename real_type>
void OpenTissue::utility::Timer< real_type >::stop (  )  [inline]

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