Nilorea Library
C utilities for networking, threading, graphics
n_time.h File Reference

Timing utilities. More...

#include "n_common.h"
#include <time.h>
#include <limits.h>
#include <sys/time.h>
+ Include dependency graph for n_time.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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...
 

Detailed Description

Timing utilities.

Author
Castagnier Mickael
Version
1.0
Date
24/03/05

Definition in file n_time.h.