Tekst
Source
Documentation/timesource tree
Standard library

time

Native wall-clock and delay helpers.

Functions

timestamp() returns Unix time as a floating-point value. now() returns local time formatted as YYYY-MM-DD HH:MM:SS. sleep(seconds) waits for the requested non-negative duration.

time.tk
use time
print(time.timestamp())
print(time.now())
time.sleep(0.1)