pctimer.h File Reference


Detailed Description

Function to get a high-resolution timer for Win32/Cygwin/Unix.

Version:
1.6, 2004/08/02
Author:
Wu Yongwei

Definition in file pctimer.h.

#include <sys/time.h>

Go to the source code of this file.

Typedefs

typedef double pctimer_t

Functions

__inline pctimer_t pctimer (void)


Typedef Documentation

typedef double pctimer_t

Definition at line 41 of file pctimer.h.


Function Documentation

__inline pctimer_t pctimer ( void   ) 

Definition at line 78 of file pctimer.h.

00079 {
00080     struct timeval __tv;
00081     gettimeofday(&__tv, NULL);
00082     return (double)__tv.tv_sec + (double)__tv.tv_usec / 1000000;
00083 }


Generated on Wed May 5 00:06:38 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6