find time taken by your program to run and record it in log file | python decorators

Опубликовано: 26 Июнь 2021
на канале: Ishaan Sharma
370
13

I created this cool and simple python decorator that can be applied to any function or class method and it will give you total running time, starting and ending time of function in the form of a log file having name of the function. And optionally location for log file can also be given.

Follow me on Instagram:   / ishaansharma711  

code: https://github.com/ishaansharma7/Time...

#python
#beginner
#pyprojects

Song1: Dizaro - Redemption
Music provided by Vlog No Copyright Music.
Video Link:    • Dizaro - Redemption (Vlog No Copyrigh...  

Song2: DayFox - Let's Go Somewhere
Music provided by Vlog No Copyright Music.
Video Link:    • DayFox - Let's Go Somewhere (Vlog No ...