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, and moving currentTime to startTime. More... | |
time_t | get_sec (N_TIME *timer) |
Poll any N_TIME HiTimer, returning sec, and moving currentTime to startTime. More... | |
time_t | get_usec (N_TIME *timer) |
Poll any N_TIME HiTimer, returning usec, and moving currentTime to startTime. More... | |
void | PAUSE (void) |
make a pause in a terminal More... | |
int | start_HiTimer (N_TIME *timer) |
Initialize or restart from zero any N_TIME HiTimer. More... | |
void | u_sleep (unsigned int usec) |
wrapper around usleep for API consistency More... | |
struct N_TIME |
time_t get_msec | ( | N_TIME * | timer | ) |
time_t get_sec | ( | N_TIME * | timer | ) |
time_t get_usec | ( | N_TIME * | timer | ) |
Poll any N_TIME HiTimer, returning usec, and moving currentTime to startTime.
timer | Any N_TIMER *timer you wanna poll |
Definition at line 107 of file n_time.c.
Referenced by manage_particle(), and n_kafka_pooling_thread().
void PAUSE | ( | void | ) |
int start_HiTimer | ( | N_TIME * | timer | ) |
Initialize or restart from zero any N_TIME HiTimer.
timer | Any N_TIMER *timer you wanna start or reset |
Definition at line 82 of file n_time.c.
Referenced by init_particle_system(), and n_kafka_pooling_thread().
void u_sleep | ( | unsigned int | usec | ) |
wrapper around usleep for API consistency
usec | Number of usec to sleep |
Definition at line 38 of file n_time.c.
Referenced by destroy_threaded_pool(), manage_client(), netw_send_func(), netw_wait_msg(), and wait_for_threaded_pool().