your computer' system clock is set to specific datetimeand time zone the built-in time module allows your python programs to read the system clock for the current time the time time(and time sleep(functions are the most useful in the time module the time time(function the unix epoch is time reference commonly used in programming am on january coordinated universal time (utcthe time time(function returns the number of seconds since that moment as float value (recall that float is just number with decimal point this number is called an epoch timestamp for exampleenter the following into the interactive shellimport time time time( here ' calling time time(on december at : pm pacific standard time the return value is how many seconds have passed between the unix epoch and the moment time time(was called epoch timestamps can be used to profile codethat ismeasure how long piece of code takes to run if you call time time(at the beginning of the code block you want to measure and again at the endyou can subtract the first timestamp from the second to find the elapsed time between those two calls for exampleopen new file editor tab and enter the following programimport time def calcprod()calculate the product of the first , numbers product for in range( )product product return product starttime time time(prod calcprod( endtime time time( print('the result is % digits long (len(str(prod))) print('took % seconds to calculate (endtime starttime)at uwe define function calcprod(to loop through the integers from to , and return their product at vwe call time time(and store it in starttime right after calling calcprod()we call time time(again and store it in endtime we end by printing the length of the product returned by calcprod( and how long it took to run calcprod(