HG-MD  1
Public Member Functions | Private Attributes
Time Class Reference

Allows timing of algorithms; accurate up to 0.01 sec. More...

#include <Time.h>

List of all members.

Public Member Functions

void tic ()
Mdouble toc ()

Private Attributes

clock_t start
clock_t finish

Detailed Description

Allows timing of algorithms; accurate up to 0.01 sec.

Calculates time used for computing in clocks, not total time.


Member Function Documentation

void Time::tic ( ) [inline]
{start = clock();}
Mdouble Time::toc ( ) [inline]
{finish = clock();      return (Mdouble(finish)-Mdouble(start))/CLOCKS_PER_SEC;         }

Member Data Documentation

clock_t Time::finish [private]
clock_t Time::start [private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines