working timer class