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

Construct and collect CPU timer only if requested by user #63

Merged
merged 1 commit into from
Aug 26, 2020

Conversation

rerrabolu
Copy link
Contributor

No description provided.

@rerrabolu rerrabolu merged commit aefd848 into master Aug 26, 2020
uint32_t index = timer.CreateTimer();
uint32_t cpuTimerIdx = 0;
if (print_cpu_time_) {
timer.InitTimer();

Choose a reason for hiding this comment

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

FWIW - Please take a look at #60 on using how to compute TSCFreq just once instead of every time inside a huge triple-nested loop.
Code review could catch such issues.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This changelist is the first part. The plan is to completely remove calls to RDTSCP and instead use Chrono library service from C++

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants