Time Menu
This submenu is located under More Modules.
Item |
Description |
---|---|
from time import * |
Imports all methods from the time module. |
sleep(seconds) |
Pauses the program for the specified number of seconds. |
clock() |
Returns the current processor time as a floating number expressed in seconds. |
localtime() |
Converts a time expressed in seconds since January 1, 2000 into a nine-tuple containing year, month, month day, hour, minute, second, weekday, year day, and Daylight Savings Time (DST) flag. If the optional (seconds) argument is not provided, then the real-time clock is used. |
ticks_cpu() |
Returns a processor specific increasing millisecond counter with arbitrary reference point. For measuring time consistently across different systems, use ticks_ms(). |
ticks_diff() |
Measures period between consecutive calls to ticks_cpu() or ticks_ms(). This function should not be used to measure arbitrarily long periods of time. |