Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)}")
Source by www.studytonight.com #
 
PREVIOUS NEXT
Tagged: #python #code #calculate #encryption #time
ADD COMMENT
Topic
Name
7+4 =