-
Notifications
You must be signed in to change notification settings - Fork 8k
Use Environment.TickCount64
in GetUptimeCommand
#26151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Use the .NET Core 3.0 API `Environment.TickCount64` instead of `Stopwatch`
@xtqqczze This is more difficult area than might be expected.
|
@iSazonov Does dotnet/runtime#77945 mean these changes are a change in behavior? |
Yes, this should correct the difference on different systems. |
So these changes are a fix for #18469? |
One step in this direction. What would be ideal, I described above. |
The cmdlet is documented to "return the time elapsed since the last boot of the operating system" So if these changes align with this, then I think that is sufficient for this PR.
This would be a new feature and could be implemented separately. |
This cmdlet was presented as an experimental one to get feedback. After some issues and user expectations have been identified, this cmdlet can be fixed as I described, but a fix in Runtime is required before. |
I see there is now PR: dotnet/runtime#119443 |
Environment.TickCount64
instead ofStopwatch
.cc: @iSazonov