timer that works in web worker(WIP)