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.
|
upon exiting the with-statement.
|
||||||
|
|
||||||
>>> import logging
|
>>> import logging
|
||||||
>>> log = logging.getLogger("fontTools")
|
>>> log = logging.getLogger("my-fancy-timer-logger")
|
||||||
>>> configLogger(level="DEBUG", format="%(message)s", stream=sys.stdout)
|
>>> configLogger(logger=log, level="DEBUG", format="%(message)s", stream=sys.stdout)
|
||||||
>>> with Timer(log, 'do something'):
|
>>> with Timer(log, 'do something'):
|
||||||
... time.sleep(0.01)
|
... time.sleep(0.01)
|
||||||
Took ... to do something
|
Took ... to do something
|
||||||
|
Loading…
x
Reference in New Issue
Block a user