Merge remote-tracking branch 'origin/master' into partial-instancer
This commit is contained in:
commit
754c3c2381
@ -250,8 +250,8 @@ class Timer(object):
|
||||
upon exiting the with-statement.
|
||||
|
||||
>>> import logging
|
||||
>>> log = logging.getLogger("fontTools")
|
||||
>>> configLogger(level="DEBUG", format="%(message)s", stream=sys.stdout)
|
||||
>>> log = logging.getLogger("my-fancy-timer-logger")
|
||||
>>> configLogger(logger=log, level="DEBUG", format="%(message)s", stream=sys.stdout)
|
||||
>>> with Timer(log, 'do something'):
|
||||
... time.sleep(0.01)
|
||||
Took ... to do something
|
||||
|
Loading…
x
Reference in New Issue
Block a user