Implement timing for accurate emulation speed