Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
n_time.h File Reference

Timing utilities. More...

#include "n_common.h"
#include <time.h>
#include <limits.h>
#include "nilorea/n_windows.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.
 
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
 

Detailed Description

Timing utilities.

Author
Castagnier Mickael
Version
1.0
Date
24/03/05

Definition in file n_time.h.