This fork captures the mbed lib v125 for ease of integration into older projects.

Fork of mbed-dev by mbed official

Embed: (wiki syntax)

« Back to documentation index

LowPowerTimer Class Reference

LowPowerTimer Class Reference

Low power timer. More...

#include <LowPowerTimer.h>

Inherits mbed::Timer.

Public Member Functions

void start ()
 Start the timer.
void stop ()
 Stop the timer.
void reset ()
 Reset the timer to 0.
float read ()
 Get the time passed in seconds.
int read_ms ()
 Get the time passed in mili-seconds.
int read_us ()
 Get the time passed in micro-seconds.
 operator float ()
 An operator shorthand for read()

Detailed Description

Low power timer.

Synchronization level: Interrupt safe

Definition at line 32 of file LowPowerTimer.h.


Member Function Documentation

operator float (  ) [inherited]

An operator shorthand for read()

Definition at line 79 of file Timer.cpp.

float read ( void   ) [inherited]

Get the time passed in seconds.

Definition at line 54 of file Timer.cpp.

int read_ms (  ) [inherited]

Get the time passed in mili-seconds.

Definition at line 58 of file Timer.cpp.

int read_us (  ) [inherited]

Get the time passed in micro-seconds.

Definition at line 47 of file Timer.cpp.

void reset (  ) [inherited]

Reset the timer to 0.

If it was already counting, it will continue

Definition at line 72 of file Timer.cpp.

void start ( void   ) [inherited]

Start the timer.

Definition at line 31 of file Timer.cpp.

void stop ( void   ) [inherited]

Stop the timer.

Definition at line 40 of file Timer.cpp.