Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move timer from testgen to lib folder. #3785

Merged
merged 2 commits into from
Jan 5, 2023
Merged

Move timer from testgen to lib folder. #3785

merged 2 commits into from
Jan 5, 2023

Conversation

fruffy
Copy link
Collaborator

@fruffy fruffy commented Dec 16, 2022

This moves the ScopedTimer class of P4Tools into the general lib folder. A scoped timer measures and logs the lifetime of the timer object from creation to destruction. This is a handy class as it only needs to be instantiated to record the time some functions take.

@fruffy fruffy added the p4tools Topics related to the P4Tools back end label Dec 16, 2022
@fruffy fruffy force-pushed the fruffy/timer branch 7 times, most recently from 8d521bc to 5b0f690 Compare December 16, 2022 12:01
Copy link
Contributor

@davidbolvansky davidbolvansky left a comment

Choose a reason for hiding this comment

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

Useful, thanks

@fruffy
Copy link
Collaborator Author

fruffy commented Jan 5, 2023

@mbudiu-vmw Could you give this an approval/review?

@fruffy fruffy merged commit 19d08ae into main Jan 5, 2023
@fruffy fruffy deleted the fruffy/timer branch January 6, 2023 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p4tools Topics related to the P4Tools back end
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants