Evan Brown
/
APpart3_E_start_2
completed code
millis.h@5:4af75af374cc, 2018-11-22 (annotated)
- Committer:
- evenbrownie
- Date:
- Thu Nov 22 22:40:15 2018 +0000
- Revision:
- 5:4af75af374cc
- Parent:
- 0:f43994f44684
blah
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
evenbrownie | 0:f43994f44684 | 1 | /* |
evenbrownie | 0:f43994f44684 | 2 | * @author: Natasha Sarkar, 2018 |
evenbrownie | 0:f43994f44684 | 3 | */ |
evenbrownie | 0:f43994f44684 | 4 | |
evenbrownie | 0:f43994f44684 | 5 | #ifndef __MILLIS_H |
evenbrownie | 0:f43994f44684 | 6 | #define __MILLIS_H |
evenbrownie | 0:f43994f44684 | 7 | |
evenbrownie | 0:f43994f44684 | 8 | /** |
evenbrownie | 0:f43994f44684 | 9 | * Starts the clock. Call this function |
evenbrownie | 0:f43994f44684 | 10 | * at the beginning of main. |
evenbrownie | 0:f43994f44684 | 11 | */ |
evenbrownie | 0:f43994f44684 | 12 | void millis_begin(void); |
evenbrownie | 0:f43994f44684 | 13 | |
evenbrownie | 0:f43994f44684 | 14 | /** |
evenbrownie | 0:f43994f44684 | 15 | * Returns the number of milliseconds |
evenbrownie | 0:f43994f44684 | 16 | * that have passed since the call |
evenbrownie | 0:f43994f44684 | 17 | * to millis_begin. |
evenbrownie | 0:f43994f44684 | 18 | */ |
evenbrownie | 0:f43994f44684 | 19 | unsigned long millis(void); |
evenbrownie | 0:f43994f44684 | 20 | |
evenbrownie | 0:f43994f44684 | 21 | #endif |
evenbrownie | 0:f43994f44684 | 22 |