n = os.difftime (t1, t2)
Returns the number of seconds from time t1 to time t2. In other words, the result is t1 - t2. tstart = os.time () -- do something lengthy here .. tend = os.time () print (os.difftime (tend , tstart)) --> 3
tstart = os.time () -- do something lengthy here .. tend = os.time () print (os.difftime (tend , tstart)) --> 3