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