XenevaOS
Loading...
Searching...
No Matches
XenevaOS
Process
Doomgeneric
i_timer.h
Go to the documentation of this file.
1
//
2
// Copyright(C) 1993-1996 Id Software, Inc.
3
// Copyright(C) 2005-2014 Simon Howard
4
//
5
// This program is free software; you can redistribute it and/or
6
// modify it under the terms of the GNU General Public License
7
// as published by the Free Software Foundation; either version 2
8
// of the License, or (at your option) any later version.
9
//
10
// This program is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// GNU General Public License for more details.
14
//
15
// DESCRIPTION:
16
// System-specific timer interface
17
//
18
19
20
#ifndef __I_TIMER__
21
#define __I_TIMER__
22
23
#define TICRATE 35
24
25
// Called by D_DoomLoop,
26
// returns current time in tics.
27
int
I_GetTime
(
void
);
28
29
// returns current time in ms
30
int
I_GetTimeMS
(
void
);
31
32
// Pause for a specified number of ms
33
void
I_Sleep
(
int
ms);
34
35
// Initialize timer
36
void
I_InitTimer
(
void
);
37
38
// Wait for vertical retrace or pause a bit.
39
void
I_WaitVBL
(
int
count);
40
41
#endif
42
I_GetTime
int I_GetTime(void)
Definition
i_timer.c:43
I_Sleep
void I_Sleep(int ms)
Definition
i_timer.c:76
I_GetTimeMS
int I_GetTimeMS(void)
Definition
i_timer.c:62
I_WaitVBL
void I_WaitVBL(int count)
Definition
i_timer.c:84
I_InitTimer
void I_InitTimer(void)
Definition
i_timer.c:90
Generated by
1.9.8