Fixing a bug in the scheduler that caused a runaway job and CPU spikes when using the 'when' paramter.  Also some cleanup of redundant calls to time.time and the comparison used to see when a job should run.
Merge pull request #18577 from garethgreenaway/18534_2014_7_schedule_cpu_spike

Fixes to scheduler in 2014.7