don't use timeBeginPeriod if options.sleep is enabled