louper 1.0.0
Timer Class Reference

A Timer. Not really implemented yet. More...

#include <hardware.h>

Public Types

using sptr = std::shared_ptr< Timer >
 Shared pointer type for Timer.
 

Public Member Functions

bool isActive () const
 Is this timer active? More...
 
void start (const uint millis)
 Start a timer for given count of milliseconds. More...
 
void stop ()
 Stop the timer.
 
SignalTimeout & timeout ()
 Getter for timeout signal. More...
 

Private Attributes

SignalTimeout s_timeout
 Signal: timer period elapsed.
 

Detailed Description

A Timer. Not really implemented yet.

Member Function Documentation

◆ isActive()

bool Timer::isActive ( ) const
inline

Is this timer active?

Returns
true
false

◆ start()

void Timer::start ( const uint  millis)
inline

Start a timer for given count of milliseconds.

Parameters
millis

◆ timeout()

SignalTimeout & Timer::timeout ( )
inline

Getter for timeout signal.

Returns
SignalTimeout&

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