Added a get time function in useconds.

This commit is contained in:
Gregory Alexander 2001-07-01 20:42:56 +00:00
parent 6af8c250ff
commit 0359f17c64
2 changed files with 6 additions and 0 deletions

View File

@ -441,6 +441,11 @@ bx_pc_system_c::timebp_handler(void* this_ptr)
}
#endif // BX_DEBUGGER
Bit64u
bx_pc_system_c::time_usec() {
return (Bit64u) ( (time_ticks()) / m_ips );
//return (Bit64u) ( double(time_ticks()) / m_ips );
}
Bit64u
bx_pc_system_c::time_ticks()

View File

@ -153,6 +153,7 @@ public:
#endif
Bit64u counter;
int counter_timer_index;
Bit64u time_usec();
Bit64u time_ticks();
void dma_write8(Bit32u phy_addr, unsigned channel);