Robotran C Documentation
Functions
time_functions.h File Reference

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

#include <stdlib.h>
#include <sys/time.h>

Go to the source code of this file.

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

Detailed Description

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

Author
Nicolas Van der Noot

Function Documentation

◆ 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