function dpause(delay)
% dpause <Debug pause. Same but delay=inf waits for key press.>
% Usage:: state=dpause(delay)
%

% revision history:
% 04/14/20 Mark D. Shattuck <mds> dpause.m

%% Main

switch delay
  case 0
  case inf
    pause;
  otherwise
    pause(delay);
end

