Millisecond Timer Library
v0.85
Millisecond Timer Library for use with Add a Simple Library tutorial.
|
Code for tracking milliseconds elapsed in another cog. This is part of a tutorial on adding a Simple Library to the project. More...
Functions | |
void | ms_timer (void *par) |
int | mstime_start () |
Start the millisecond timer. | |
void | mstime_stop () |
Stop the millisecond timer and free up a cog. | |
int | mstime_get () |
Get milliseconds since call to start. | |
void | mstime_reset () |
Reset the millisecond time elapsed to zero. | |
void | mstime_set (int newTime) |
Set the millisecond timer. |
Code for tracking milliseconds elapsed in another cog. This is part of a tutorial on adding a Simple Library to the project.
int mstime_get | ( | ) |
Get milliseconds since call to start.
void mstime_set | ( | int | newTime | ) |
Set the millisecond timer.
newTime | New millisecond time value that timer should start counting from. |
int mstime_start | ( | ) |
Start the millisecond timer.