eobish

annotate src/dos/timer.h @ 7:6a350c554e46

started DOS port
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 19 Jan 2015 15:49:14 +0200
parents
children
rev   line source
nuclear@7 1 /*
nuclear@7 2 256-color 3D graphics hack for real-mode DOS.
nuclear@7 3 Copyright (C) 2011 John Tsiombikas <nuclear@member.fsf.org>
nuclear@7 4
nuclear@7 5 This program is free software: you can redistribute it and/or modify
nuclear@7 6 it under the terms of the GNU General Public License as published by
nuclear@7 7 the Free Software Foundation, either version 3 of the License, or
nuclear@7 8 (at your option) any later version.
nuclear@7 9
nuclear@7 10 This program is distributed in the hope that it will be useful,
nuclear@7 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
nuclear@7 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
nuclear@7 13 GNU General Public License for more details.
nuclear@7 14
nuclear@7 15 You should have received a copy of the GNU General Public License
nuclear@7 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
nuclear@7 17 */
nuclear@7 18 #ifndef TIMER_H_
nuclear@7 19 #define TIMER_H_
nuclear@7 20
nuclear@7 21 #ifdef __cplusplus
nuclear@7 22 extern "C" {
nuclear@7 23 #endif
nuclear@7 24
nuclear@7 25 /* expects the required timer resolution in hertz
nuclear@7 26 * if res_hz is 0, the current resolution is retained
nuclear@7 27 */
nuclear@7 28 void init_timer(int res_hz);
nuclear@7 29
nuclear@7 30 void reset_timer(void);
nuclear@7 31 unsigned long get_msec(void);
nuclear@7 32
nuclear@7 33 #ifdef __cplusplus
nuclear@7 34 }
nuclear@7 35 #endif
nuclear@7 36
nuclear@7 37 #endif /* TIMER_H_ */