|
libcmutils 0.6.5
Multi-platform C99 utility library
|
Data Structures | |
| struct | CMUTIL_TimerTask |
| Timer task handle. More... | |
| struct | CMUTIL_Timer |
| Timer object for scheduling tasks. More... | |
Macros | |
| #define | CMUTIL_TIMER_PRECISION 1 |
| #define | CMUTIL_TIMER_THREAD 2 |
| #define | CMUTIL_TimerCreate() CMUTIL_TimerCreateEx(CMUTIL_TIMER_PRECISION, CMUTIL_TIMER_THREAD) |
| Create a timer object with default settings. | |
Functions | |
| CMUTIL_Timer * | CMUTIL_TimerCreateEx (long precision, int threads) |
| Create a timer object with custom settings. | |
| #define CMUTIL_TIMER_PRECISION 1 |
Default timer precision in milliseconds.
| #define CMUTIL_TIMER_THREAD 2 |
Default number of threads for the timer.
| #define CMUTIL_TimerCreate | ( | ) | CMUTIL_TimerCreateEx(CMUTIL_TIMER_PRECISION, CMUTIL_TIMER_THREAD) |
Create a timer object with default settings.
This macro creates a timer object using the default precision and number of threads.
| CMUTIL_Timer * CMUTIL_TimerCreateEx | ( | long | precision, |
| int | threads | ||
| ) |
Create a timer object with custom settings.
| precision | The precision of the timer in milliseconds. |
| threads | The number of threads to use for the timer. |