Module clock
source code
Implement wall clock time for Unix systems.
This module implements a clock() function that will return a
non-decreasing time, regardless of the system it is called on. This is
necessary for Unix systems, whose clock() function instead returns the
current processor time.
float
|
|
| Call Graph |
|
int
|
_MAXFORWARD = 100
the maximum number of seconds to allow the clock to move
forward
|
int
|
_FUDGE = 1
the fudged time change to use if the clock moved forward more than
_MAXFORWARD, or if the clock moved back
|
|
RelativeTime
|
_RTIME = <DebTorrent.clock.RelativeTime instance at 0x2b551939...
the RelativeTime instance to use
|
|
|
accept2dyear = 1
|
|
|
altzone = 25200
|
|
|
daylight = 1
|
|
|
timezone = 28800
|
|
|
tzname = ('PST', 'PDT')
|
Imports:
sys,
clock.asctime,
clock.ctime,
HTTPCache.gmtime,
BT1.Storage.localtime,
clock.mktime,
selectpoll.sleep,
ConfigDir.strftime,
HTTPCache.strptime,
time.struct_time,
time,
clock.tzset
|
| Call Graph |
Override the clock() function for Unix systems.
This function will return a non-decreasing measure of the current
time. This is only used on Unix systems. On Windows systems, the clock()
function from the time module will be used.
- Returns:
float
- the relative time from the RelativeTime instance
|
_RTIME
the RelativeTime instance to use
- Type:
- RelativeTime
- Value:
-
|