Example program showing usage of the ExtendedTimer library.

Dependencies:   ExtendedTimer mbed

main.cpp

Committer:
JLarkin
Date:
2017-03-09
Revision:
1:5e9cfc0be22f
Parent:
0:8c3a4d04a258

File content as of revision 1:5e9cfc0be22f:

#include "mbed.h"
#include "ExtendedTimer.h"

ExtendedTimer t;

int main() {
    t.start();
    while(1) {
        printf("t = %5.3f min\r\n", t.read()/60);
        wait(15);
    }
}