If msec omitted, returns the minimum length of time (in milliseconds) that the primitive actions will wait before returning. If msec supplied, sets that time.