Thread Subject: GUI Real Running Time

Subject: GUI Real Running Time

From: Ashraf Awad

Date: 1 Sep, 2007 11:20:51

Message: 1 of 4

Hii
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.
Thank you
Ashraf Awad

Subject: GUI Real Running Time

From: Daphne

Date: 2 Sep, 2007 19:26:29

Message: 2 of 4


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>...
> Hii
> 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.
> Thank you
> Ashraf Awad

Subject: GUI Real Running Time

From: Ashraf Awad

Date: 5 Sep, 2007 02:04:40

Message: 3 of 4

"Daphne " <daphnew_too_nospam@yahoo.com> wrote in message
<fbf2p5$g1u$1@fred.mathworks.com>...
>
> Add an edit-text button and feed into it the tic-toc
data
> that you can get once the callback is done ?
>
> Daphne
>
Thank you Daphne for your answer.
Ashraf Awad
 
>
> "Ashraf Awad" <a_awad@hotmail.com> wrote in message
> <fbbhuj$4ed$1@fred.mathworks.com>...
> > Hii
> > 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.
> > Thank you
> > Ashraf Awad
>

Subject: GUI Real Running Time

From: Gautam Vallabha

Date: 5 Sep, 2007 14:30:40

Message: 4 of 4

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

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
gui time Ashraf Awad 1 Sep, 2007 07:25:04
rssFeed for this Thread

Contact us at files@mathworks.com