Skip to content

Add timing utilities #3

Description

@nicoloesch

Motivation

As a centralised configuration utility, this package is exposed to the entire OMOP stack. We therefore can include timing utilities that could benefit other packages as well.

Pitch

Add timing wrappers that can be just plugged into the code as contextmanagers to get the timing duration of the operation in-between:

@contextmanager
def timing_manager(details):
....


with timing_manager("Details to be listed/printed"):
    # Do operation

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions