Files
fluxengine/lib/globals.cc
2018-10-20 19:25:20 +02:00

11 lines
202 B
C++

#include "globals.h"
#include <sys/time.h>
#include <stdarg.h>
double getCurrentTime(void)
{
struct timeval tv;
gettimeofday(&tv, NULL);
return double(tv.tv_sec) + tv.tv_usec/1000000.0;
}