Skip to content

Commit e3f2901

Browse files
Goes with: Improve --datetime accuracy
1 parent ba4c5c6 commit e3f2901

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

IntelPresentMon/PresentMonService/PresentMon.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,10 @@ void PresentMonSession::AddPresents(
262262
uint64_t stopQpc, bool* hitStopQpc) {
263263
auto i = *presentEventIndex;
264264

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

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

0 commit comments

Comments
 (0)