Bradley Kohler
/
FRDM_Pacemaker
a pacemaker
clock.h@2:ab8469051a2d, 2016-10-26 (annotated)
- Committer:
- kohlerba
- Date:
- Wed Oct 26 14:04:14 2016 +0000
- Revision:
- 2:ab8469051a2d
- Parent:
- 1:446bd28a1f19
- Child:
- 3:334300ac49e5
pacing works with busy loops.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kohlerba | 0:9e97accb2a4c | 1 | #include "mbed.h" |
kohlerba | 0:9e97accb2a4c | 2 | |
kohlerba | 1:446bd28a1f19 | 3 | //Starts the clock |
kohlerba | 1:446bd28a1f19 | 4 | int start_clock(void); |
kohlerba | 1:446bd28a1f19 | 5 | |
kohlerba | 1:446bd28a1f19 | 6 | //A counter that updates to the current time |
kohlerba | 0:9e97accb2a4c | 7 | void count_time(void); |
kohlerba | 1:446bd28a1f19 | 8 | |
kohlerba | 1:446bd28a1f19 | 9 | //Returns the clock time |
kohlerba | 0:9e97accb2a4c | 10 | double get_time(void); |