Use system clock instead of used CPU time. Fixes key repeat and some
other stuff. close #206