lsst.dax.apdb
22.0.1-3-gdc1f270+ec3d045337
|
Public Member Functions | |
def | __init__ (self, str name, bool do_logging=True, bool log_before_cursor_execute=False) |
Timer | __enter__ (self) |
Any | __exit__ (self, Optional[Type] exc_type, Any exc_val, Any 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.
Timer lsst.dax.apdb.apdbSql.Timer.__enter__ | ( | self | ) |
Enter context, start timer
Any lsst.dax.apdb.apdbSql.Timer.__exit__ | ( | self, | |
Optional[Type] | exc_type, | ||
Any | exc_val, | ||
Any | exc_tb | ||
) |
Exit context, stop and dump timer