Skip to content

natnew/Python-Projects-Calculate-Python-Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Python Projects: Calculate Python Code 🐍

This repo contains python code that how long it takes for your Python code to execute.
Run the code.

Python

import time start_time = time.time() for a in range(0,10000): for b in range(0, 10000): pass end_time = time.time() print('How long did it take? ') print(f"It took: {end_time - start_time:3f} seconds")

Output

How long did it take? It took: 3.749114 seconds

About

Python Projects Calculate Python Code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages