Answers for "python code to calculate encryption time"

-1

python code to calculate encryption time

import timeit

setup_code = "from math import factorial"

statement = """
    for i in range(10):
        factorial(i)
"""

print(f"Execution time is: {timeit.timeit(setup = setup_code, stmt = statement, number = 10000000)}")
Posted by: Guest on October-06-2020

Code answers related to "python code to calculate encryption time"

Python Answers by Framework

Browse Popular Code Answers by Language