fix broken window update for history
switch timer to seconds instead of ms
fix unreliable and missed timeouts
Merge pull request #109 from progandy/master

Fix unreliable timeouts