Scaffolding  0.1
This program can assemble genome scaffolds using the pairing information in paired-end reads.
Public Member Functions | Public Attributes | List of all members
timer Struct Reference

a simple timer class that can be paused and resumed More...

#include <profiling.hpp>

Public Member Functions

 timer ()
 constructor
 
void start ()
 start the timer
 
void stop ()
 stop the timer
 
void pause ()
 pause the timer (= stop())
 
void resume ()
 resume the timer by setting an artificial start_time
 
double cycles_passed () const
 return the number of cycles passed between last start and last stop More...
 
double seconds_passed () const
 return the number of seconds passed between last start and last stop (see cycles_passed())
 

Public Attributes

double start_time
 last time the timer was started
 
double stop_time
 last time the timer was stopped
 

Detailed Description

a simple timer class that can be paused and resumed

Member Function Documentation

double timer::cycles_passed ( ) const
inline

return the number of cycles passed between last start and last stop

the timer has to have been started and stopped for this to make sense


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