Package osh :: Package command :: Module timer
[frames] | no frames]

Module timer

source code

timer INTERVAL

Generates a sequence of timestamps, separated in time by the specified INTERVAL (approximately). The INTERVAL format is:
   HH:MM:SS

where HH is hours, MM is minutes, SS is seconds. HH: and HH:MM: may be omitted.

Examples:
   INTERVAL        meaning
   -----------------------------
   5               5 seconds
   1:30            1 minute, 30 seconds
   1:00:00         1 hour

The output timestamp is a tuple, matching what is returned by time.gmtime() and time.localtime(): (year, month, day of month, hour, minute, second, day of week, day of year, dst).

Notes:

Functions
 
timer(interval)
Generates a sequence of timestamps, separated in time by the specified interval (approximately).
source code
Function Details

timer(interval)

source code 
Generates a sequence of timestamps, separated in time by the specified interval (approximately). The interval format is HH:MM:SS, where HH is hours, MM is minutes, SS is seconds. HH: and HH:MM: may be omitted.