PropWare  3.0.0.229
C++ objects and CMake build system for Parallax Propeller
mstimer.h
Go to the documentation of this file.
1 
32 #ifndef MSTIMER_H
33 #define MSTIMER_H
34 
35 #if defined(__cplusplus)
36 extern "C" {
37 #endif
38 
39 #include "simpletools.h"
40 
46 int mstime_start();
47 
51 void mstime_stop();
52 
58 int mstime_get();
59 
63 void mstime_reset();
64 
71 void mstime_set(int newTime);
72 
73 #if defined(__cplusplus)
74 }
75 #endif
76 /* __cplusplus */
77 #endif
78 /* MSTIMER_H */
79 
mstime_reset
void mstime_reset()
Reset the millisecond time elapsed to zero.
Definition: mstimer.c:41
mstime_set
void mstime_set(int newTime)
Set the millisecond timer.
Definition: mstimer.c:46
mstime_stop
void mstime_stop()
Stop the millisecond timer and free up a cog.
Definition: mstimer.c:27
mstime_get
int mstime_get()
Get milliseconds since call to start.
Definition: mstimer.c:36
simpletools.h
This library provides convenient functions for a variety of microcontroller I/O, timing,...
mstime_start
int mstime_start()
Start the millisecond timer.
Definition: mstimer.c:21