Bochs/bochs/iodev/slowdown_timer.h
Bryce Denney 53d483864c - use #ifs instead of #ifdefs for slowdown timer code. The
usual autoconf/configure method is to use 0 vs 1, not defined vs
  undefined to turn things on.
2001-09-24 05:08:25 +00:00

33 lines
423 B
C++

#if BX_USE_SLOWDOWN_TIMER
class bx_slowdown_timer_c {
private:
struct {
Bit64u start_time;
Bit64u start_emulated_time;
Bit64u lasttime;
int timer_handle;
float MAXmultiplier;
Bit64u Q; // (Q (in seconds))
} s;
public:
bx_slowdown_timer_c();
int init();
static void timer_handler(void * this_ptr);
void handle_timer();
};
extern bx_slowdown_timer_c bx_slowdown_timer;
#endif