functions used to get the time expressed in us (micro seconds)
More...
#include <stdlib.h>
#include <time.h>
#include <sys/timeb.h>
Go to the source code of this file.
|
void | time_get (int *t_sec, int *t_usec) |
| return the absolute time of the computer More...
|
|
int | t_usec (int init_t_sec, int init_t_usec) |
| return the elapsed time (in us) since time 'init_t' (expressed in s and us) More...
|
|
int | gettimeofday (struct timeval *tp, void *tz) |
| get current time fot Windows More...
|
|
functions used to get the time expressed in us (micro seconds)
- Author
- Nicolas Van der Noot
◆ gettimeofday()
int gettimeofday |
( |
struct timeval * |
tp, |
|
|
void * |
tz |
|
) |
| |
get current time fot Windows
◆ t_usec()
int t_usec |
( |
int |
init_t_sec, |
|
|
int |
init_t_usec |
|
) |
| |
return the elapsed time (in us) since time 'init_t' (expressed in s and us)
- Parameters
-
[in] | init_t_sec | initial time in s |
[in] | init_t_usec | initial time in us |
◆ time_get()
void time_get |
( |
int * |
t_sec, |
|
|
int * |
t_usec |
|
) |
| |
return the absolute time of the computer
- Parameters
-
[out] | t_sec | time in s |
[out] | t_usec | time in us |