I have 2 buttons, which are start and stop button. When I click on the start button, i make the timer is counting while click on the stop button, it will stop counting the time.
The problem I face here is if I click back start button, is it possible for the time reset to 0.00 sec which means that the time is start to re-count again?

If anyone can help, thank you.

Recommended Answers

All 2 Replies

Without seeing code the only possible and logical way is when you click the button to set the variable that you display as the time back to zero

well javaAddict says the way is good, without looking at your code. when you are running timer i guess you are adding a time in some variable. so whevever u hit the start button just always set variable value to zero. if you need more help just post your code. hope it will help you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.