mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-24 11:11:02 -07:00
18 lines
314 B
C++
18 lines
314 B
C++
#include "lib/core/globals.h"
|
|
#include "lib/core/logger.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;
|
|
}
|
|
|
|
void warning(const std::string msg)
|
|
{
|
|
log(msg);
|
|
}
|