Answers for "how to check if how much time is your code taking to run in python"

2

how to check if how much time is your code taking to run in python

def program_time_checker():
    start_time = time.time()
    print("Grepper")
    num = 90
    print(num)
    end_time = time.time()
    return end_time-start_time
#call the function to get the time taken by your program to run
print(program_time_checker())
Posted by: Guest on July-27-2021

Code answers related to "how to check if how much time is your code taking to run in python"

Python Answers by Framework

Browse Popular Code Answers by Language