separate timer class

Why didn't i do this in the first place