Skip to content

Commit

Permalink
Added support to reset timer on creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulMartinsen committed Jul 3, 2014
1 parent 896a749 commit c4b5864
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ArduinoTimer.h
Expand Up @@ -19,6 +19,12 @@ class ArduinoTimer
uint32_t m_uStartTime;
public:
ArduinoTimer();

inline ArduinoTimer(bool bReset) __attribute__((always_inline))
{
if (bReset)
Reset();
}

inline void Reset() __attribute__((always_inline))
{
Expand Down

0 comments on commit c4b5864

Please sign in to comment.