Skip to content

Commit

Permalink
Goes with: Improve --datetime accuracy
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffersonMontgomery-Intel committed Feb 26, 2024
1 parent ba4c5c6 commit e3f2901
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions IntelPresentMon/PresentMonService/PresentMon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,10 @@ void PresentMonSession::AddPresents(
uint64_t stopQpc, bool* hitStopQpc) {
auto i = *presentEventIndex;

if (trace_session_.mStartQpc.QuadPart != 0) {
// If mStartQpc contains a value an etl file is being processed.
if (trace_session_.mStartTimestamp.QuadPart != 0) {
// If mStartTimestamp contains a value an etl file is being processed.
// Set this value in the streamer to have the correct start time.
streamer_.SetStartQpc(trace_session_.mStartQpc.QuadPart);
streamer_.SetStartQpc(trace_session_.mStartTimestamp.QuadPart);
}

for (auto n = presentEvents.size(); i < n; ++i) {
Expand Down

0 comments on commit e3f2901

Please sign in to comment.