Bochs/bochs/iodev/slowdown_timer.h
Christophe Bothamy e555765d75 - add a "clock: sync=[none|slowdown|realtime], time0=[timeValue|local|utc]"
- pit: and time0: options are still supported but deprecated
- warn when parsing deprecated directives
- fix wrong number of ata_device_translation_names
- still to do:
  - setting time0 to utc is not yet supported
  - the man page, user guide and .bochsrc still need to be updated
    with the new options
2003-08-19 00:10:39 +00:00

34 lines
661 B
C++

/////////////////////////////////////////////////////////////////////////
// $Id: slowdown_timer.h,v 1.8 2003-08-19 00:10:38 cbothamy Exp $
/////////////////////////////////////////////////////////////////////////
//
class bx_slowdown_timer_c : public logfunctions {
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(void);
void reset(unsigned type);
static void timer_handler(void * this_ptr);
void handle_timer();
};
extern bx_slowdown_timer_c bx_slowdown_timer;