MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / getHostTimer

Method getHostTimer

include/CL/opencl.hpp:2460–2472  ·  view source on GitHub ↗

* Return the current value of the host clock as seen by the device. * The resolution of the device timer may be queried with the * CL_DEVICE_PROFILING_TIMER_RESOLUTION query. * @return The host timer value. */

Source from the content-addressed store, hash-verified

2458 * @return The host timer value.
2459 */
2460 cl_ulong getHostTimer(cl_int *error = nullptr)
2461 {
2462 cl_ulong retVal = 0;
2463 cl_int err =
2464 clGetHostTimer(this->get(), &retVal);
2465 detail::errHandler(
2466 err,
2467 __GET_HOST_TIMER_ERR);
2468 if (error) {
2469 *error = err;
2470 }
2471 return retVal;
2472 }
2473
2474 /**
2475 * Return a synchronized pair of host and device timestamps as seen by device.

Callers

nothing calls this directly

Calls 2

errHandlerFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected