add timer class for windows