Skip to content
Snippets Groups Projects
Commit 3a878a35 authored by Robin Carlsson's avatar Robin Carlsson
Browse files

4: Rounding

parent caff06c6
Branches old
No related tags found
No related merge requests found
...@@ -446,12 +446,12 @@ with open(sys.argv[1], encoding="utf-8") as pages_to_test: ...@@ -446,12 +446,12 @@ with open(sys.argv[1], encoding="utf-8") as pages_to_test:
# # empty object to follow the last comma and a square bracket to close the array # # empty object to follow the last comma and a square bracket to close the array
# f.write("{}]") # f.write("{}]")
print("Seconds taken for page: " + str( (time.time() - page_start_time) ) ) print("Seconds taken for page: " + str( round((time.time() - page_start_time)) ) )
print("\033[96m \n-- TEST END --\n\033[00m") print("\033[96m \n-- TEST END --\n\033[00m")
# how long the whole thing took, sleeps included # how long the whole thing took, sleeps included
print("Minutes taken for test: " + str( (time.time() - starttime)/60 ) ) print("Minutes taken for test: " + str( round((time.time() - starttime)/60) ) )
tab.stop() tab.stop()
driver.quit() driver.quit()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment