mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
18 lines
309 B
C++
18 lines
309 B
C++
#include "lib/core/globals.h"
|
|
#include "lib/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);
|
|
}
|