Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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())
 
PREVIOUS NEXT
Tagged: #check #time #code #run #python
ADD COMMENT
Topic
Name
9+3 =