lsst.dax.apdb
20.0.0-1-g253301a+77d7614bcc
|
Public Member Functions | |
def | __init__ (self, name, do_logging=True, log_before_cursor_execute=False) |
def | __enter__ (self) |
def | __exit__ (self, exc_type, exc_val, exc_tb) |
Timer class defining context manager which tracks execution timing. Typical use: with Timer("timer_name"): do_something On exit from block it will print elapsed time. See also :py:mod:`timer` module.
def lsst.dax.apdb.apdb.Timer.__enter__ | ( | self | ) |
Enter context, start timer
def lsst.dax.apdb.apdb.Timer.__exit__ | ( | self, | |
exc_type, | |||
exc_val, | |||
exc_tb | |||
) |
Exit context, stop and dump timer