Raptor 3.0.0-rc.1
A fast and space-efficient pre-filter for querying very large collections of nucleotide sequences
 
raptor::timer< concurrency > Class Template Reference
+ Inheritance diagram for raptor::timer< concurrency >:
+ Collaboration diagram for raptor::timer< concurrency >:

Public Member Functions

double in_seconds () const
 
double in_seconds () const
 
template<concurrent concurrency_>
void operator+= (timer< concurrency_ > const &other)
 
timeroperator= (timer &&)=default
 
timeroperator= (timer const &other)
 
timeroperator= (timer const &other)=default
 
void start ()
 
void stop ()
 
 timer (timer &&)=default
 
 timer (timer const &other)
 
 timer (timer const &other)=default
 

Private Types

using rep_t = std::conditional_t< is_concurrent, std::atomic< std::chrono::steady_clock::rep >, std::chrono::steady_clock::rep >
 

Private Attributes

std::chrono::steady_clock::time_point start_ {std::chrono::time_point<std::chrono::steady_clock>::max()}
 
std::chrono::steady_clock::time_point stop_ {}
 
rep_t ticks {}
 

Static Private Attributes

static constexpr bool is_concurrent {concurrency == concurrent::yes}
 

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