13#ifndef SANDALS_TIC_TOC_HXX
14#define SANDALS_TIC_TOC_HXX
35 using Clock = std::chrono::high_resolution_clock;
36 using Time = std::chrono::microseconds;
62 void tic() {this->m_start_time = Clock::now();}
69 this->m_stop_time = Clock::now();
70 this->m_elapsed_time = std::chrono::duration_cast<Time>(
71 this->m_stop_time - this->m_start_time
void tic()
Definition TicToc.hxx:62
Real elapsed_ms() const
Definition TicToc.hxx:85
Clock::time_point m_start_time
Definition TicToc.hxx:38
Real elapsed_s() const
Definition TicToc.hxx:79
Real elapsed_us() const
Definition TicToc.hxx:91
TicToc & operator=(TicToc const &)=delete
TicToc(const TicToc &)=delete
TicToc()
Definition TicToc.hxx:57
Time m_elapsed_time
Definition TicToc.hxx:40
std::chrono::microseconds Time
Definition TicToc.hxx:36
std::chrono::high_resolution_clock Clock
Definition TicToc.hxx:35
Clock::time_point m_stop_time
Definition TicToc.hxx:39
void toc()
Definition TicToc.hxx:67
The namespace for the Sandals library.
Definition Sandals.hh:73
double Real
Definition Sandals.hh:84