Fix for dwell time edge case
Had to use a Win32 function for getting ms
+ Wrote timestamp in ISO8601 since the method made this output easier