kiwi-simple-metrics/kiwi_simple_metrics/main.py

9 lines
118 B
Python

import psutil
def main() -> None:
print(psutil.cpu_percent(interval=1))
if __name__ == "__main__":
main()