EV3RT CXX API Reference [English]
An RTOS-based development platform for LEGO Mindstorms EV3.
stopwatch< Timer > Class Template Reference
Inheritance diagram for stopwatch< Timer >:
timeout< Timer >

Public Types

typedef Timer::time_type time_type
 

Public Member Functions

 stopwatch (Timer &timer)
 
void init (Timer &timer)
 
void init_stopped (Timer &timer)
 
void clear ()
 
bool running () const
 
void cancel ()
 
void restart ()
 
void start ()
 
void stop ()
 
time_type operator() () const
 
time_type get () const
 
void set (time_type value)
 
void decrease (time_type time)
 

Private Attributes

Timer * m_timer
 
volatile bool m_running
 
volatile time_type m_base
 

Detailed Description

template<typename Timer>
class ev3cxx::detail::stopwatch< Timer >

Definition at line 102 of file ev3cxx_time.h.