Peripheral Functions

home > Research

peripheral.py

import time

def time_keeper(text,start_time):
	print("--------",text,"---------")
	end=time.time()
	elapsed_time=end-start_time
	print("+ Time elapsed = ",end="")
	if elapsed_time>60:
		print(elapsed_time/60," [mins]")
	else:
		print(elapsed_time," [s]")