pyre.timers.Registrar¶
Module Contents¶
-
class
pyre.timers.Registrar.Registrar(**kwds)¶ This class maintains the association between names and timers.
Registrar acts a timer factory: upon the first use of a given timer name, it builds a timer and registers it with its internal index. Subsequent requests for timers by the same name return the original instance, effectively making timers accessible in non-local ways. See the documentation for {pyre.timers} for more information and simple examples.
-
_index¶
-
timer(self, name, **kwds)¶ Build and register a new timer under {name}, if this is the first time {name} is used. Otherwise, retrieve the named timer
-