aboutsummaryrefslogtreecommitdiffstats
path: root/Web/test.py
blob: 634bc84d156ad0ef1d4d2192df36dd718300695e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import time, os, sys
from datetime import datetime

file_name =  os.path.basename(sys.argv[0])

file_name = file_name.split(".")[0]

now = datetime.now()
current_time = now.strftime("%H:%M:%S")
print("Current Time = " + current_time)

f = open("Results/" + file_name + "_results", "w+")
f.write("THIS IS RESULTS TEXT\n")
f.write("Current Time = " + current_time)
f.close()
print("Running test.py for ~ 5 seconds.")
time.sleep(5)