|
In article <fbf2p5$g1u$1@fred.mathworks.com>,
daphnew_too_nospam@yahoo.com says...
>
> Add an edit-text button and feed into it the tic-toc data
> that you can get once the callback is done ?
>
> Daphne
>
> "Ashraf Awad" <a_awad@hotmail.com> wrote in message
> <fbbhuj$4ed$1@fred.mathworks.com>...
> > I want to include, within a Matlab GUI file, an edit box
> > that tells the ellapsed time once the pushbutton is
> > activated untill a callback function is executed and
> > completed.
TIC/TOC will work but is prone to problems -- if someone from the
command line uses TIC & TOC, it will change the values being shown in
the GUI.
Use CLOCK and ETIME instead. For example:
buttonPressTime = clock;
...
elapsedTime = etime(clock, buttonPressTime);
--
Gautam Vallabha
The MathWorks
Gautam.Vallabha@mathworks.com
|