Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions challenge.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import time
from time import strftime, localtime, time


def finish_date():
def finish_date(func):
# You have to code here!!

def wrapper(*args, **kwargs):
print( strftime(f" inicio function {func.__name__} %d/%m/%Y %H:%M:%S", localtime(time())))
func(*args, **kwargs)
print( strftime(f" finalizo la funcion {func.__name__} %d/%m/%Y %H:%M:%S", localtime(time())))
return wrapper

@finish_date
def palindrome(string):
Expand All @@ -13,7 +17,7 @@ def palindrome(string):

@finish_date
def long_function():
for _ in range(1000000):
for _ in range(1000000000):
pass


Expand Down