tests/timer.c
double timer_timestamp(void)
{
    double ret;

#ifdef XT3
    ret = dclock();
#else
    struct timeval tv;

    gettimeofday(&tv, 0);
    ret = (double)tv.tv_usec + tv.tv_sec * 1.e6;
#endif
    return ret;
}
/* Function to get and return the current (wall clock) time. */
Function to get and return the current (wall clock) time.
Function to get and return the current ( wall clock ) time .
double timer_timestamp(void)
{
    double ret;
#ifdef XT3
    ret = dclock();
#else
    struct timeval tv;
    gettimeofday(&tv, 0);
    ret = (double)tv.tv_usec + tv.tv_sec * 1.e6;
#endif
    return ret;
}
double timer_timestamp ( void ) { double ret ; #ifdef XT3 ret = dclock ( ) ; #else struct timeval tv ; gettimeofday ( & tv , 0 ) ; ret = ( double ) tv . tv_usec + tv . tv_sec * 1.e6 ; #endif return ret ; }
Function to get and return the current (wall clock) time.
Function to get and return the current ( wall clock ) time .