User`s guide
gputimeit
11-135
t1 = gputimeit(f,1)
0.2933
More About
Tips
gputimeit is preferable to timeit for functions that use the GPU, because it ensures
that all operations on the GPU have finished before recording the time and compensates
for the overhead. For operations that do not use a GPU, timeit offers greater precision.
Note the following limitations:
• The function F should not call tic or toc.
• You cannot use tic and toc to measure the execution time of gputimeit itself.
See Also
gpuArray | wait