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.
| 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. |
| 29 | baseStatTimer* getStatTimer( const clfftTimerType type ) |
| 30 | { |
| 31 | if( type == CLFFT_CPU ) |
| 32 | return &CpuStatTimer::getInstance( ); |
| 33 | |
| 34 | return &GpuStatTimer::getInstance( ); |
| 35 | } |
nothing calls this directly
no outgoing calls
no test coverage detected