make timer depend on HZ define
fix freezing
implement sleeping