Accurate I/O timing