python-3.x - Is there a way to read disk access times in python?
问题描述
Is there a way to read disk access times in python? There is numerous scripts I've found in c/c++. Just wondering if there's one for pure python or cython. Looking for similar functionality to WHDD or MHDD.
解决方案
If this is for windows you can right click the bar on the bottom of your screen, choose joblist -> (tab) peformance -> Disc, here you will find basic data of the disc IE response time, at the bottom there's also a link called "recource survailence" mine is in danish so sorry if the translation is wrong there, in there will be a bit more data.
UPDATE
from win32com.client import Dispatch
from time import time
starttime = time()
Dispatch('Scripting.FileSystemObject')
endtime = time() - starttime
print(endtime)
this is the only way i can come up with to find out, and i don't know how to do it sector by sector
推荐阅读
- java - Microsoft SQL variant type error pops up when I run hibernate 5
- system-verilog - 模块中的systemverilog参数数组,实例化模块时如何设置参数数组单个元素
- php - 如何选择不同表中不存在的行?
- javascript - jQuery 中的“没有类”选择器。通过包含多个类的特定类名选择一个元素
- machine-learning - 图片中的水印是深度学习的障碍吗?
- java - 避免“找不到带有 URI 的 HTTP 请求的映射”或包罗万象的控制器
- python - 给定一个单词列表和一个句子,找到句子中出现的所有单词,无论是整体还是作为子字符串
- java - Java中如何分隔字符、数字和符号?
- html - Rmarkdown 渲染功能:将 RMD 转换为 HTML 时显示数据框的问题
- linux - 从 /var 开始的 bitbucket 存储库