From d894b831025f8c513e1c45e21d339fe41a86cc96 Mon Sep 17 00:00:00 2001
From: JeanExtreme002 <jeangamerextreme@gmail.com>
Date: Sat, 30 Nov 2019 05:54:53 -0200
Subject: [PATCH] new example

---
 psutil/psutil_example.py | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 psutil/psutil_example.py

diff --git a/psutil/psutil_example.py b/psutil/psutil_example.py
new file mode 100644
index 00000000..9dbc973f
--- /dev/null
+++ b/psutil/psutil_example.py
@@ -0,0 +1,28 @@
+import psutil
+import os
+import time
+
+os.system("title System Monitoring")
+os.system("color A")
+
+while True:
+
+    os.system("cls")
+
+    print("\n Processes:",len(psutil.pids()))
+
+    cpu_n = 0
+
+    for cpu in psutil.cpu_percent(percpu=True):
+        cpu_n += 1
+        print("\n CPU %s: %.1f%%"%(cpu_n,cpu))
+    
+    battery = psutil.sensors_battery()
+    print("\n Battery: %i%%"%battery.percent)
+
+    memory = psutil.virtual_memory()
+    print("\n Memory: %.1f%%"%memory.percent)
+
+    time.sleep(1)
+
+    
\ No newline at end of file