<reponame>technobaboo/stardust-py<filename>stardust_xr/utils.py<gh_stars>0
import time

def benchmark(func):
	def wrapper(*arg):
		t = time.time()
		res = func(*arg)
		print("Function took",(time.time()-t),"seconds to run")
		return res

	return wrapper

import time

def benchmark(func):
	def wrapper(*arg):
		t = time.time()
		res = func(*arg)
		print("Function took",(time.time()-t),"seconds to run")
		return res

	return wrapper