import time


def callAndTime(input_):
	"""
	Wrapper for calling and timing a function
	args:
		input: List 
			func at zeroth index and
			rest are arguments
	"""
	func= input_[0]
	args = input_[1:]
	
	start = time.time()
	ret = func(*args)
	timetaken = time.time() - start
	return ret, timetaken