Plan 9 from Bell Labs’s /usr/web/sources/patch/sorry/msleep/readme
msleep -- millisecond sleep. i wrote this for hitting a particular value of /dev/^(date rtc) without worring about missing the desired second or doing math with an external program. e.g. end = futuretime while(! ~ `{/cat /dev/rtc} $end) msleep 500