MCPcopy Create free account
hub / github.com/clMathLibraries/clFFT / getStatTimer

Function getStatTimer

src/statTimer/statisticalTimer.extern.cpp:29–35  ·  view source on GitHub ↗

Even though the individual getInstance functions of the timer classes return references, we convert those to pointers before returning from here so that the clients can initialize their local variables to NULL, which refernces do not allow.

Source from the content-addressed store, hash-verified

27// we convert those to pointers before returning from here so that the clients can initialize
28// their local variables to NULL, which refernces do not allow.
29baseStatTimer* getStatTimer( const clfftTimerType type )
30{
31 if( type == CLFFT_CPU )
32 return &CpuStatTimer::getInstance( );
33
34 return &GpuStatTimer::getInstance( );
35}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected