MCPcopy Create free account
hub / github.com/carbonengine/trinity / GpuTime

Method GpuTime

trinity/Tr2ProfileTimer.cpp:158–166  ·  view source on GitHub ↗

-------------------------------------------------------------

Source from the content-addressed store, hash-verified

156
157// -------------------------------------------------------------
158float Tr2ProfileTimer::GpuTime() const
159{
160 if( m_gpuTimer.IsValid() )
161 {
162 USE_MAIN_THREAD_RENDER_CONTEXT();
163 return m_gpuTimer.GetTime( renderContext ) * 1000.f;
164 }
165 return -1.f;
166}
167
168// -------------------------------------------------------------
169float Tr2ProfileTimer::CpuTime() const

Callers

nothing calls this directly

Calls 2

IsValidMethod · 0.45
GetTimeMethod · 0.45

Tested by

no test coverage detected