ProteoWizard
Public Member Functions | Private Attributes
pwiz::util::Timer Class Reference

#include <Timer.hpp>

List of all members.

Public Member Functions

 Timer ()
double elapsed () const

Private Attributes

time_t start_
time_t finish_

Detailed Description

Definition at line 37 of file Timer.hpp.


Constructor & Destructor Documentation

pwiz::util::Timer::Timer ( )
inline

Definition at line 40 of file Timer.hpp.

{time(&start_);}

Member Function Documentation

double pwiz::util::Timer::elapsed ( ) const
inline

Definition at line 41 of file Timer.hpp.

{time_t now; time(&now); return difftime(now, start_);}

Member Data Documentation

time_t pwiz::util::Timer::start_
private

Definition at line 44 of file Timer.hpp.

time_t pwiz::util::Timer::finish_
private

Definition at line 45 of file Timer.hpp.


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