![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
#include "precompiled.h"#include "timer.h"#include "lib/module_init.h"#include "lib/posix/posix_types.h"#include "lib/status.h"#include "lib/sysdep/os.h"#include "lib/utf8.h"#include <algorithm>#include <ctime>#include <mutex>#include <sstream>
Macros | |
| #define | HAVE_GETTIMEOFDAY 0 |
| #define | HAVE_CLOCK_GETTIME 0 |
Functions | |
| static Status | InitResolution () |
| void | timer_Init () |
| timer_Time will subsequently return values relative to the current time. More... | |
| static void | EnsureMonotonic (double &newTime) |
| double | timer_Time () |
| double | timer_Resolution () |
Variables | |
| static double | resolution |
| static std::mutex | ensure_monotonic_mutex |
| #define HAVE_CLOCK_GETTIME 0 |
| #define HAVE_GETTIMEOFDAY 0 |
|
static |
|
static |
| void timer_Init | ( | ) |
timer_Time will subsequently return values relative to the current time.
| double timer_Resolution | ( | ) |
| double timer_Time | ( | ) |
|
static |
|
static |