3 ms·Maybe easiest to look at the sources for the emulator, I posted a link to it in another comment.by rjsw 5y agoMaybe easiest to look at the sources for the emulator, I posted a link to it in another comment.