* 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. */
| 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. |
nothing calls this directly
no test coverage detected