| cv.TickMeter - MATLAB File Help | Go to online doc for cv.TickMeter |
A class to measure passing time
The class computes passing time by counting the number of ticks per second. That is, the following code computes the execution time in seconds:
tm = cv.TickMeter();
tm.start();
% do something ...
tm.stop();
disp(tm.TimeSec)
It is also possible to compute the average time over multiple runs:
tm = cv.TickMeter();
for i=1:100
tm.start();
% do something ...
tm.stop();
end
fprintf('Average time in second per iteration is: %f\n', ...
tm.TimeSec / double(tm.Counter))
| Superclasses | handle |
| Sealed | false |
| Construct on load | false |
| TickMeter | the default constructor |
| Counter | internal counter value |
| TimeMicro | passed time in microseconds |
| TimeMilli | passed time in milliseconds |
| TimeSec | passed time in seconds |
| TimeTicks | counted ticks |
| id | Object ID |
| addlistener | Add listener for event. | |
| delete | Destructor | |
| eq | == (EQ) Test handle equality. | |
| findobj | Find objects matching specified conditions. | |
| findprop | Find property of MATLAB handle object. | |
| ge | >= (GE) Greater than or equal relation for handles. | |
| Static | getCPUTickCount | Returns the number of CPU ticks |
| Static | getTickCount | Returns the number of ticks. |
| Static | getTickFrequency | Returns the number of ticks per second |
| gt | > (GT) Greater than relation for handles. | |
| Sealed | isvalid | Test handle validity. |
| le | <= (LE) Less than or equal relation for handles. | |
| listener | Add listener for event without binding the listener to the source object. | |
| lt | < (LT) Less than relation for handles. | |
| ne | ~= (NE) Not equal relation for handles. | |
| notify | Notify listeners of event. | |
| reset | Resets internal values | |
| start | Starts counting ticks | |
| stop | Stops counting ticks |
| ObjectBeingDestroyed | Notifies listeners that a particular object has been destroyed. |