Changed timeQuantum to be an integer instead of a double.
Added a sleep function to suspend program for the length of the timeQuantum.