Sine wave is now based on system time rather than iterations