timer sample main added