DART 6.13.2
Loading...
Searching...
No Matches
Stopwatch.hpp File Reference
#include <chrono>
#include <iostream>
#include "dart/common/detail/Stopwatch-impl.hpp"

Go to the source code of this file.

Classes

class  dart::common::Stopwatch< UnitType, ClockType >
 Simple stopwatch implementation. More...
 

Namespaces

namespace  dart
 
namespace  dart::common
 

Typedefs

using dart::common::StopwatchS = Stopwatch< std::chrono::seconds >
 
using dart::common::StopwatchMS = Stopwatch< std::chrono::milliseconds >
 
using dart::common::StopwatchUS = Stopwatch< std::chrono::microseconds >
 
using dart::common::StopwatchNS = Stopwatch< std::chrono::nanoseconds >
 

Functions

void dart::common::tic ()
 MATLAB like timer.
 
double dart::common::toc (bool print=false)
 Returns the elapsed time in seconds since the last tic() call.
 
double dart::common::tocS (bool print=false)
 Returns the elapsed time in seconds since the last tic() call.
 
double dart::common::tocMS (bool print=false)
 Returns the elapsed time in milliseconds since the last tic() call.
 
double dart::common::tocUS (bool print=false)
 Returns the elapsed time in microseconds since the last tic() call.
 
double dart::common::tocNS (bool print=false)
 Returns the elapsed time in nanoseconds since the last tic() call.