PRTools Contents

PRTools User Guide

overtime

OVERTIME

Initialise or check PRTIME controlled execution time

     FLAG = OVERTIME(STARTTIME)

Input
 STARTTIME Refenrence time

Output
 FLAG True if TIME - STARTTIME larger than PRTIME

Description

OVERTIME can be used to stop loops after a time set by PRTIME in the  following way

     starttime = overtime;     % initialise
     for i=1:n
       ....                    % statements
       if overtime(starttime)  % check time
          prwarning(2,'execution stopped by PRTIME after %i iterations',i);
          break;
       end
     end

See also

prtime,

PRTools Contents

PRTools User Guide

This file has been automatically generated. If badly readable, use the help-command in Matlab.