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

common time function More...

#include "nilorea/n_time.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+ Include dependency graph for n_time.c:

Go to the source code of this file.

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

common time function

Author
Castagnier Mickael
Version
1.0
Date
24/03/05

Definition in file n_time.c.