Skip to content

Improve hook duration timing#3029

Merged
asottile merged 1 commit into
pre-commit:mainfrom
adamchainz:improve_duration_timing
Oct 13, 2023
Merged

Improve hook duration timing#3029
asottile merged 1 commit into
pre-commit:mainfrom
adamchainz:improve_duration_timing

Conversation

@adamchainz

@adamchainz adamchainz commented Oct 13, 2023

Copy link
Copy Markdown
Contributor

Use time.monotonic() to prevent clock slippage error , and always output two significant figures to avoid ambiguity.

Comment thread tests/commands/run_test.py Outdated
@adamchainz adamchainz force-pushed the improve_duration_timing branch from b304cd3 to d988767 Compare October 13, 2023 15:40

@asottile asottile left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@asottile asottile enabled auto-merge October 13, 2023 15:49
@asottile asottile merged commit c9945b9 into pre-commit:main Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants