Stopwatch can now be concat to a string without

any extra function calls
This commit is contained in:
2020-02-02 11:23:16 -05:00
parent df9a7cee82
commit 1789aa1b81
2 changed files with 10 additions and 0 deletions

View File

@@ -73,6 +73,7 @@ else:
#Print the results
print("\nHere is a printing of the different times, starting with the string:")
print("It took " + timer + " to run this algorithm")
print("It took " + timer.getString() + " to run this algorithm")
print("It took " + str(timer.getNanoseconds()) + " nanoseconds to run this algorithm")
print("It took " + str(timer.getMicroseconds()) + " microseconds to run this algorithm")