|
Millisecond Timer Library
v0.85
Millisecond Timer Library for use with Add a Simple Library tutorial.
|
Tracks milliseconds elapsed in another cog. This is part of a tutorial on adding a Simple Library to the project. More...
#include "simpletools.h"Go to the source code of this file.
Functions | |
| 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. | |
Tracks 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.
1.8.1.2