gpt4 book ai didi

c# - 如何访问我的 C 盘的事件时间 (%)?

转载 作者:太空宇宙 更新时间:2023-11-03 17:57:27 26 4
gpt4 key购买 nike

如果您在存储下打开资源监视器 (win7),它有一个名为“事件时间 (%)”的属性,我想使用 C# 找出我的每个 HDD 上的事件时间百分比。

有什么建议吗?

最佳答案

LogicalDisk|PhysicalDisk\% Disk Time

Reports the percentage of time that the selected disk drive is busy servicing read or write requests. Because this counters data can span more than one sample, and consequently overstate disk utilization, compare this value against % Idle Time for a more accurate picture.

LogicalDisk|PhysicalDisk\% Disk Write Time

Reports the percentage of time that the selected disk drive is busy servicing write requests.

LogicalDisk|PhysicalDisk\% Disk Read Time

Reports the percentage of time that the selected disk drive is busy servicing read requests.

下面是两个很好的例子。

An Introduction To Performance Counters

Using Performance Counters in C#

关于c# - 如何访问我的 C 盘的事件时间 (%)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7457787/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com