 <p>When you say "same method", there is really only one way to do that which is accessing the system clock. There is <strong>more than one method</strong> to do this, but they ultimately rely on the same thing. Also, the paper you referred us to relies on using Windows and Visual C and so this would not be applicable to Mac OS or Linux. As such, I'm going to try and give you platform independent methods for both MATLAB and C++. In either platform, this will give you the execution time as best as it can. </p> <h1>MATLAB</h1> <p>You can use the <code>tic</code> and <code>toc</code> commands. You start with the <code>tic</code> command, then do your processing, then you finish with <code>t = toc</code>. <code>t</code> will thus contain how much time has elapsed in between <code>tic</code> and <code>toc</code>.</p> <p>Here is a quick example:</p> <pre><code>tic; for i = 1 : 100000 M = rand(100,100); %// Generate a 100 x 100 uniformly random matrix t = toc; fprintf('The amount of time that has elapsed is %f seconds\n', t); </code></pre> <p>If you want to compute FPS, simply measure how long it takes to execute the algorithm for <strong>one</strong> image/frame, then take the reciprocal. This time would be <strong>seconds/frame</strong> and so to compute FPS, take the reciprocal.</p> <h1>C++</h1> <p>You can use the <code>ctime</code> library, and use the <code>time(NULL)</code> call. This will return the time in seconds since Epoch (January 1, 1970). Like the MATLAB example, here is a C++ example:</p> <pre><code>#include &lt;ctime&gt; void func() { using namespace std; // Begin int start = time(NULL); // Put in processing code here // End - time in seconds int finish = time(NULL); // Measure time elapsed int time_elapsed = finish - start; } </code></pre> <p>To compute FPS, just follow what I did for the MATLAB example.</p> <h1>Another way using C++ (but with fair warning)</h1> <p>If you want microsecond precision to measure time in C++, you can use the <code>clock()</code> function. You can do something like this:</p> <pre><code>#include &lt;ctime&gt; void func() { using namespace std; // Begin clock_t start = clock(); // Put in processing code here // End - time in microseconds clock_t finish = clock(); // Measure time elapsed double time_elapsed = double(finish - start) / CLOCKS_PER_SEC; } </code></pre> <p>However, the <code>clock()</code> function will measure CPU time and not the actual time elapsed, so you will need to be careful here if you decide to do this. Check this posting out for more details: <a href="http://stackoverflow.com/questions/2808398/easily-measure-elapsed-time">Easily measure elapsed time</a></p>