dostunnel

annotate src/timer.h @ 3:a8024271c662

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