SWDEV-235495 Fix elapsed time calculation

This issue happens because we getLastQueuedCommand when recording
the event and do end_ - start_ so it takes the ticks for the
completion of the last command before event record. This may not
happen if one records a marker command for hipEventRecord

Change-Id: I1d6b06a5befb3b93f16b67692c59dca25c982e0f
Este commit está contenido en:
Saleel Kudchadker
2020-05-12 09:37:56 -07:00
padre a92dc8c25c
commit 5b60eee02e
+1 -1
Ver fichero
@@ -91,7 +91,7 @@ hipError_t Event::elapsedTime(Event& eStop, float& ms) {
}
ms = static_cast<float>(static_cast<int64_t>(eStop.event_->profilingInfo().end_ -
event_->profilingInfo().start_))/1000000.f;
event_->profilingInfo().end_))/1000000.f;
return hipSuccess;
}