dxx-rebirth/common/include/timer.h
Kp ae0a00a893 Return timer_query() from timer_update()
Most timer_update sites immediately query the timer, so return it to
save them the call.
2015-02-05 03:03:48 +00:00

27 lines
508 B
C

/*
* This file is part of the DXX-Rebirth project <http://www.dxx-rebirth.com/>.
* It is copyright by its individual contributors, as recorded in the
* project's Git history. See COPYING.txt at the top level for license
* terms and a link to the Git history.
*/
/*
*
* Header for timer functions
*
*/
#pragma once
#include "maths.h"
#ifdef __cplusplus
fix64 timer_update();
__attribute_warn_unused_result
fix64 timer_query();
void timer_delay(fix seconds);
void timer_delay2(int fps);
#endif