mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
19 lines
343 B
C++
19 lines
343 B
C++
#include "lib/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);
|
|
fmt::print("Warning: {}\n", msg);
|
|
}
|