mirror of
https://github.com/AdnanHodzic/auto-cpufreq.git
synced 2025-07-23 21:55:09 +02:00
Add execution timestamp for to --stats
This commit is contained in:
parent
c79ab10821
commit
d062ca940f
@ -322,6 +322,13 @@ def countdown(s):
|
||||
if auto_cpufreq_stats_file is not None:
|
||||
auto_cpufreq_stats_file.seek(0)
|
||||
auto_cpufreq_stats_file.truncate(0)
|
||||
|
||||
# execution timestamp
|
||||
from datetime import datetime
|
||||
now = datetime.now()
|
||||
current_time = now.strftime("%B %d (%A) - %H:%M:%S")
|
||||
print("\n\t\tExecuted on:", current_time)
|
||||
|
||||
else:
|
||||
run("clear")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user