MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / HasScreenTime

Function HasScreenTime

PresentData/PresentMonTraceConsumer.cpp:48–56  ·  view source on GitHub ↗

Returns true if a ScreenTime has been set for this present.

Source from the content-addressed store, hash-verified

46
47// Returns true if a ScreenTime has been set for this present.
48static inline bool HasScreenTime(std::shared_ptr<PresentEvent> const& p)
49{
50 for (auto const& pr : p->Displayed) {
51 if (pr.second != 0) {
52 return true;
53 }
54 }
55 return false;
56}
57
58// Set a ScreenTime for this present.
59//

Callers 3

HandleDxgkQueueSubmitMethod · 0.85
HandleDXGKEventMethod · 0.85
HandleWin32kEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected