Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: GUI - timer
Date: Thu, 18 Jun 2009 12:13:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 6
Message-ID: <h1db0d$3ee$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1245327181 3534 172.30.248.35 (18 Jun 2009 12:13:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 18 Jun 2009 12:13:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1133162
Xref: news.mathworks.com comp.soft-sys.matlab:548591


Hi,
I call method from GUI (created through Guide) and from this method another two are called. I would like to add a timer to my GUI which would show how long every method lasts. I found how to use tic and toc but I don't know how can I get values of toc to my GUI. I mean something like

set(handles.text1,'String',num2str(time));

Because the main method is still running when I need value for the first method so I can't use toc as an output of main method. I hope someone can understand what I want:) If no just ask me I'll try to explain better:)