soc/rtio: refactor, share counter and underflow detector
compiler/devices: set initial time