gputimeit
Time required to run function on GPU
Description
t = gputimeit(F)F. The function handle accepts no external input
          arguments, but you can define it with input arguments to its internal function
          call.
t = gputimeit(F,numOutputs)F with the desired number of output arguments,
            numOutputs. By default, gputimeit calls the
          function F with one output argument, or no output arguments if
            F does not return any output.
Examples
Input Arguments
Limitations
- The function - Fmust not call- ticor- toc.
- You cannot use - ticand- tocto measure the execution time of- gputimeititself.
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.
Extended Capabilities
Version History
Introduced in R2013b