@@ -403,7 +403,7 @@ class device
403403 // / \see_opencl_ref{clGetHostTimer}
404404 // /
405405 // / \opencl_version_warning{2,1}
406- ulong_ get_host_timer ()
406+ ulong_ get_host_timer () const
407407 {
408408 ulong_ host_timestamp = 0 ;
409409 cl_int ret = clGetHostTimer (m_id, &host_timestamp);
@@ -420,7 +420,7 @@ class device
420420 // / \see_opencl_ref{clGetDeviceAndHostTimer}
421421 // /
422422 // / \opencl_version_warning{2,1}
423- std::pair<ulong_, ulong_> get_device_and_host_timer ()
423+ std::pair<ulong_, ulong_> get_device_and_host_timer () const
424424 {
425425 ulong_ host_timestamp;
426426 ulong_ device_timestamp;
@@ -449,7 +449,7 @@ class device
449449 // /
450450 // / \opencl_version_warning{2,1}
451451 template <class Duration >
452- Duration get_host_timer ()
452+ Duration get_host_timer () const
453453 {
454454 const ulong_ nanoseconds = this ->get_host_timer ();
455455 return detail::make_duration_from_nanoseconds (Duration (), nanoseconds);
@@ -464,7 +464,7 @@ class device
464464 // /
465465 // / \opencl_version_warning{2,1}
466466 template <class Duration >
467- std::pair<Duration, Duration> get_device_and_host_timer ()
467+ std::pair<Duration, Duration> get_device_and_host_timer () const
468468 {
469469 const std::pair<ulong_, ulong_> timestamps = this ->get_device_and_host_timer ();
470470 return std::make_pair (
0 commit comments