Subversion Repositories Games.Descent

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 pmbaty 1
/*
2
 * This file is part of the DXX-Rebirth project <https://www.dxx-rebirth.com/>.
3
 * It is copyright by its individual contributors, as recorded in the
4
 * project's Git history.  See COPYING.txt at the top level for license
5
 * terms and a link to the Git history.
6
 */
7
 
8
/*
9
 *
10
 * Header for timer functions
11
 *
12
 */
13
 
14
#pragma once
15
 
16
#include "maths.h"
17
 
18
#ifdef __cplusplus
19
namespace dcx {
20
 
21
fix64 timer_update();
22
__attribute_warn_unused_result
23
fix64 timer_query();
24
void timer_delay_ms(unsigned milliseconds);
25
static inline void timer_delay(fix seconds)
26
{
27
        timer_delay_ms(f2i(seconds * 1000));
28
}
29
void timer_delay_bound(unsigned bound);
30
static inline void timer_delay2(int fps)
31
{
32
        timer_delay_bound(1000u / fps);
33
}
34
 
35
}
36
#endif