Package cherrypy :: Package lib :: Module locking :: Class Timer
[hide private]
[frames] | no frames]

Class Timer

source code

object --+
         |
        Timer

A simple timer that will indicate when an expiration time has passed.

Instance Methods [hide private]
 
__init__(self, expiration)
Create a timer that expires at `expiration` (UTC datetime)
source code
 
expired(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
after(cls, elapsed)
Return a timer that will expire after `elapsed` passes.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, expiration)
(Constructor)

source code 

Create a timer that expires at `expiration` (UTC datetime)

Overrides: object.__init__