Public Member Functions | Private Types | Private Attributes | List of all members
Timer Class Reference

#include <Timer.h>

Public Member Functions

void Print (char *item)
 
void Reset ()
 
void Start ()
 
void Stop ()
 
 Timer ()
 
std::string ToString () const
 
 ~Timer ()
 

Private Types

typedef std::chrono::duration< double > Duration
 
typedef std::chrono::time_point< std::chrono::system_clock > TimePoint
 

Private Attributes

int count_
 
TimePoint end_time_
 
TimePoint start_time_
 
double sum_time_
 

Detailed Description

Definition at line 48 of file Timer.h.

Member Typedef Documentation

typedef std::chrono::duration<double> Timer::Duration
private

Definition at line 51 of file Timer.h.

typedef std::chrono::time_point<std::chrono::system_clock> Timer::TimePoint
private

Definition at line 50 of file Timer.h.

Constructor & Destructor Documentation

Timer::Timer ( )

Definition at line 4 of file Timer.cpp.

Timer::~Timer ( )

Definition at line 10 of file Timer.cpp.

Member Function Documentation

void Timer::Print ( char *  item)

Definition at line 37 of file Timer.cpp.

void Timer::Reset ( )

Definition at line 30 of file Timer.cpp.

void Timer::Start ( void  )

Definition at line 15 of file Timer.cpp.

void Timer::Stop ( void  )

Definition at line 21 of file Timer.cpp.

std::string Timer::ToString ( ) const

Definition at line 44 of file Timer.cpp.

Member Data Documentation

int Timer::count_
private

Definition at line 67 of file Timer.h.

TimePoint Timer::end_time_
private

Definition at line 65 of file Timer.h.

TimePoint Timer::start_time_
private

Definition at line 64 of file Timer.h.

double Timer::sum_time_
private

Definition at line 66 of file Timer.h.


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


choreo_task_sequence_planner
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:03:15