mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
11 lines
202 B
C++
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;
|
|
} |