Microbit as a BLE gamepad

Dependents:   microbit-dal

Fork of mbed-dev-bin by Lancaster University

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.

Detailed Description

Low power timer.

Definition at line 30 of file LowPowerTimer.h.


Member Function Documentation

float read (  ) [inherited]

Get the time passed in seconds.

int read_ms (  ) [inherited]

Get the time passed in mili-seconds.

int read_us (  ) [inherited]

Get the time passed in micro-seconds.

void reset (  ) [inherited]

Reset the timer to 0.

If it was already counting, it will continue

void start (  ) [inherited]

Start the timer.

void stop (  ) [inherited]

Stop the timer.