Moved delay_ms to misc.{c,h}