OS

os.difftime

Returns the number of seconds from one time to another.

Syntax

difftime(t2, t1)