Robotran C Documentation
Functions
time_functions.c File Reference
#include "time_functions.h"

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

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