dxx-rebirth/common/include/timer.h
Kp 12b57e84e6 Switch most in-tree http:// links to https://
For each link given as http://, verify that the site is accessible over
https:// and, if so, switch to it.  These domains were converted:

* llvm.org
* clang.llvm.org
* en.cppreference.com
* www.dxx-rebirth.com
* www.libsdl.org
* www.scons.org
2018-09-02 00:57:29 +00:00

37 lines
716 B
C++

/*
* This file is part of the DXX-Rebirth project <https://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
namespace dcx {
fix64 timer_update();
__attribute_warn_unused_result
fix64 timer_query();
void timer_delay_ms(unsigned milliseconds);
static inline void timer_delay(fix seconds)
{
timer_delay_ms(f2i(seconds * 1000));
}
void timer_delay_bound(unsigned bound);
static inline void timer_delay2(int fps)
{
timer_delay_bound(1000u / fps);
}
}
#endif