Added a get time function in useconds.
This commit is contained in:
parent
6af8c250ff
commit
0359f17c64
@ -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()
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user