1
0
mirror of https://git.code.sf.net/p/fuse-emulator/fuse synced 2026-01-28 14:20:54 +03:00
Files
fuse/timer/timer.h
Philip Kendall ddcb8654a2 Refactor the event architecture so that modules register their own events with
the event system (patch #177).


Legacy-ID: 3681
2008-06-16 09:40:29 +00:00

52 lines
1.4 KiB
C

/* timer.h: Speed routines for Fuse
Copyright (c) 1999-2004 Philip Kendall
$Id$
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Author contact information:
E-mail: philip-fuse@shadowmagic.org.uk
*/
#ifndef FUSE_TIMER_H
#define FUSE_TIMER_H
#include <libspectrum.h>
#include TIMER_HEADER
typedef TIMER_TYPE timer_type;
int timer_estimate_reset( void );
int timer_estimate_speed( void );
int timer_get_real_time( timer_type *real_time );
float timer_get_time_difference( timer_type *a, timer_type *b );
int timer_init(void);
void timer_sleep_ms( int ms );
int timer_end(void);
extern float current_speed;
extern int timer_event;
/* Internal routines */
void timer_add_time_difference( timer_type *a, long msec );
#endif /* #ifndef FUSE_TIMER_H */