The function os.clockreturns the number of seconds of processor time for the program. Thus, sleepyour wait function waits for nseconds, if you need to delay 2 minutes, just call:
sleep(2*60)
Please note that there are several better solutions for implementing functions sleepother than expected; see Sleep Function for details.
source
share