![]() |
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 |
Timing Structure.
Collaboration diagram for N_TIME:| Data Fields | ||
|---|---|---|
| struct timeval | currentTime | current time |
| time_t | delta | time since last poll |
| struct timeval | startTime | start 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 128 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 149 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 107 of file n_time.c.
References __n_assert, currentTime, delta, and startTime.
Referenced by _netw_timed_connect(), main(), main(), manage_particle(), n_kafka_polling_thread(), and netw_connect_ex_to().
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 85 of file n_time.c.
References __n_assert, delta, and startTime.
Referenced by _netw_timed_connect(), init_particle_system(), main(), main(), n_kafka_polling_thread(), and netw_connect_ex_to().
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 54 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(), recv_ssl_data(), run_client(), run_server(), and send_ssl_data().
Here is the caller graph for this function: