mirror of
https://github.com/AdnanHodzic/auto-cpufreq.git
synced 2025-07-24 06:05:08 +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:
|
if auto_cpufreq_stats_file is not None:
|
||||||
auto_cpufreq_stats_file.seek(0)
|
auto_cpufreq_stats_file.seek(0)
|
||||||
auto_cpufreq_stats_file.truncate(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:
|
else:
|
||||||
run("clear")
|
run("clear")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user