add auto- and cyclic timer
Fix compilation for linux
Merge pull request #3 from hpicgs/timer

add auto- and cyclic timer