dotnet / dotnet/dotnet-api-docs
Not clear whether stopping or starting the timer resets it to zero.
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
[Enter feedback here]
The documentation:
> Start() | Starts the timer.
> Stop() | Stops the timer.
Is exceedingly useless. Furthermore, neither the words "reset" nor "zero" appear anywhere in the documentation. One would assume that the timer has an internal memory of the elapsed time which can be reset back to zero, but it's not clear whether either the `Start()` or `Stop()` call resets it or some other method.
People on stack overflow say that doing `Stop()` followed by `Start()` reset the timer.
https://stackoverflow.com/questions/1042312/how-to-reset-a-timer-in-c
It would be nice if the official documentation was clearer.
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: 97c8ad26-4516-6fde-3ce0-db9d371a7238
* Version Independent ID: c25bc541-f9b7-d0a6-5da4-475320fc442b
* Content: [Timer Class (System.Windows.Forms)](https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.timer?view=netframework-4.7.2)
* Content Source: [xml/System.Windows.Forms/Timer.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Windows.Forms/Timer.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**
Contributor guide
Assessment
This issue has not been assessed yet.