MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / timer

Function timer

test/perf/many_table_reflection.py:530–540  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

528
529
530def timer():
531 timing = {}
532
533 @contextmanager
534 def track_time(name):
535 s = time.time()
536 yield
537 timing[name] = time.time() - s
538
539 track_time.timing = timing
540 return track_time
541
542
543def drop_all(engine, schema_name):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected