Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
#--------------- cpu и memory, ядра цпу трудно будет узнать (конечно если у тебя не root права(т.е. админские))
import psutil
# gives a single float value
print(psutil.cpu_percent())
print(psutil.virtual_memory())
#_----------------- время,где main основной код
import time
start_time = time.time()
main()
print("--- %s seconds ---" % (time.time() - start_time))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question