Bochs/bochs/iodev/slowdown_timer.h
Bryce Denney 7fdc7303c2 - add "void reset(unsigned type)" method to every I/O device.
Some devices already had one.  Some I had to add an empty one.
  I did a little cleaning of init() methods to make them more uniform
  but generally I left them alone.
- I also put these exact diffs into a patch "patch.iodev-add-reset"
  in case I want to revert these changes for some reason, for example
  if they break an old patch.  It should be deleted after a while.
2002-08-27 19:54:46 +00:00

38 lines
684 B
C++

/////////////////////////////////////////////////////////////////////////
// $Id: slowdown_timer.h,v 1.6 2002-08-27 19:54:46 bdenney Exp $
/////////////////////////////////////////////////////////////////////////
//
#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();
void init(bx_devices_c *d);
void reset(unsigned type);
static void timer_handler(void * this_ptr);
void handle_timer();
};
extern bx_slowdown_timer_c bx_slowdown_timer;
#endif