get_cpu_usage(interval=1)

This commit is contained in:
2023-10-22 20:47:05 +08:00
parent 6ad0d78286
commit d5209ea7bc
2 changed files with 9 additions and 0 deletions

View File

@@ -851,6 +851,9 @@ hashed_password = guan.encryption_MD5(password, salt='')
# 使用SHA-256进行散列加密
hashed_password = guan.encryption_SHA_256(password, salt='')
# 获取CPU使用率
cpu_usage = guan.get_cpu_usage(interval=1)
# 获取当前日期字符串
datetime_date = guan.get_date(bar=True)