![]() |
Nilorea Library
C utilities for networking, threading, graphics
|
Data Structures | |
| struct | N_TIME |
| Timing Structure. More... | |
Functions | |
| time_t | get_msec (N_TIME *timer) |
| Poll any N_TIME HiTimer, returning msec. | |
| time_t | get_sec (N_TIME *timer) |
| Poll any N_TIME HiTimer, returning sec. | |
| time_t | get_usec (N_TIME *timer) |
| Poll any N_TIME HiTimer, returning usec. | |
| void | PAUSE (void) |
| for the 'press a key to continue' | |
| int | start_HiTimer (N_TIME *timer) |
| Init or restart from zero any N_TIME HiTimer. | |
| void | u_sleep (unsigned int usec) |
| sleep for the given number of microseconds | |
| struct N_TIME |
| time_t get_msec | ( | N_TIME * | timer | ) |
Poll any N_TIME HiTimer, returning msec.
Poll any N_TIME HiTimer, returning msec.
| timer | Any N_TIMER *timer you wanna poll |
Definition at line 127 of file n_time.c.
References __n_assert, currentTime, delta, and startTime.
| time_t get_sec | ( | N_TIME * | timer | ) |
Poll any N_TIME HiTimer, returning sec.
Poll any N_TIME HiTimer, returning sec.
| timer | Any N_TIMER *timer you wanna poll |
Definition at line 148 of file n_time.c.
References __n_assert, currentTime, delta, and startTime.
| time_t get_usec | ( | N_TIME * | timer | ) |
Poll any N_TIME HiTimer, returning usec.
Poll any N_TIME HiTimer, returning usec.
| timer | Any N_TIMER *timer you wanna poll |
Definition at line 106 of file n_time.c.
References __n_assert, currentTime, delta, and startTime.
Referenced by main(), manage_particle(), and n_kafka_polling_thread().
Here is the caller graph for this function:| void PAUSE | ( | void | ) |
| int start_HiTimer | ( | N_TIME * | timer | ) |
Init or restart from zero any N_TIME HiTimer.
Init or restart from zero any N_TIME HiTimer.
| timer | Any N_TIMER *timer you wanna start or reset |
Definition at line 84 of file n_time.c.
References __n_assert, delta, and startTime.
Referenced by init_particle_system(), main(), and n_kafka_polling_thread().
Here is the caller graph for this function:| void u_sleep | ( | unsigned int | usec | ) |
sleep for the given number of microseconds
sleep for the given number of microseconds
| usec | Number of usec to sleep |
Definition at line 53 of file n_time.c.
Referenced by destroy_threaded_pool(), handle_client(), main(), manage_client(), netw_accept_pool_thread_func(), netw_send_func(), netw_wait_msg(), and run_client().
Here is the caller graph for this function: