12 #include "../clib/spinlock.h" 13 #include "../clib/stlutil.h" 30 std::string gameclock_str;
60 time_t new_last_read =
poltime();
61 unsigned int diff =
static_cast<unsigned int>( new_last_read -
last_read );
63 last_read = new_last_read;
#define OSTRINGSTREAM_STR(x)
std::unique_ptr< Core::PropertyList > global_properties
static Clib::SpinLock _gameclock_lock
static gameclock_t gameclock
void stop_gameclock()
Stops the game clock and saves the current value into "gameclock".
gameclock_t read_gameclock()
Reads the current value of the game clock.
void start_gameclock()
The functions below deal with reading and updating the gameclock. The state is protected by a mutex...
void update_gameclock()
Saves the current value into the global cprop "gameclock".
std::lock_guard< SpinLock > SpinLockGuard