不是这样的:
sleep(5)
但是像这样:
now = DateTime.Now while now != "14:40:03" sleep(0.5) end
这怎么回事?
require "time" sleep(Time.parse("14:40:03") - Time.now)