Robotran C Documentation
Classes | Functions
time_functions.h File Reference

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.

Classes

struct  timeval
 

Functions

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

Detailed Description

functions used to get the time expressed in us (micro seconds)

Author
Nicolas Van der Noot

Function Documentation

◆ 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_secinitial time in s
[in]init_t_usecinitial time in us

◆ time_get()

void time_get ( int *  t_sec,
int *  t_usec 
)

return the absolute time of the computer

Parameters
[out]t_sectime in s
[out]t_usectime in us