octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #54695] toc before tic


From: Ceral Paquet
Subject: [Octave-bug-tracker] [bug #54695] toc before tic
Date: Wed, 19 Sep 2018 15:31:02 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0

Follow-up Comment #2, bug #54695 (project octave):

Sorry that was not correct! This one.

++++
function t = toc(varargin)

% stop toc from erroring out if called before tic.

try
    [~] = builtin('toc');
catch
    builtin('tic');
end

if nargout==0
    builtin('toc',varargin{:});
else
    t = builtin('toc',varargin{:});
end
----

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?54695>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]