Skip to content

Instantly share code, notes, and snippets.

View Skchoudhary's full-sized avatar
🎯
Focusing

Sandeep Choudhary Skchoudhary

🎯
Focusing
View GitHub Profile
@Skchoudhary
Skchoudhary / python-time-decorator
Created September 9, 2020 16:26
Decorator to time function in python.
import time
def timethis(func):
def wrapper(*args, **kwargs):
start = time.time()
func(*args, **kwargs)
end = time.time()
print('%s.%s: %f' % (func.__module__, func.__name__, end-start))
return wrapper

Keybase proof

I hereby claim:

  • I am skchoudhary on github.
  • I am sandeepk_ (https://keybase.io/sandeepk_) on keybase.
  • I have a public key whose fingerprint is 98EF 269E C2DF 633D 95F9 B289 E1BB F1F5 D06C D71E

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am skchoudhary on github.
  • I am sandeepk_ (https://keybase.io/sandeepk_) on keybase.
  • I have a public key ASBTTOHZzqOCx29gPLzfCgZnyjs834SewlnCk1M8ao5aEgo

To claim this, I am signing this object: