Delay Function Alternatives

Code based on millis().