more consistent frame rate; measure time in seconds

Recognize that OS will be latent in resuming application from sleep (by
design).  Compensate by reducing requested sleep time and performing a slightly
more precise, albiet less efficient, busy wait at the end to achieve consistent
tick rate.
Merge pull request #36 from jamer/framerate

more consistent frame rate; measure time in seconds