Use system clock instead of used CPU time. Fixes key repeat and some
other stuff. close #206
Merge pull request #4 from simtr/develop

Use system clock instead of used CPU time. Fixes key repeat and some