Path: news.mathworks.com!newsfeed-00.mathworks.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Bruce Bowler <bbowler@bigelow.org>
Newsgroups: comp.soft-sys.matlab
Subject: Re: why does "doing nothing" consume so much CPU?
Date: 30 Apr 2009 20:16:13 GMT
Lines: 23
Message-ID: <75uf8dF19rkf6U1@mid.individual.net>
References: <75u7cbF19h2ujU1@mid.individual.net>
	<gtcs4a$kdn$1@fred.mathworks.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 8w1uSH+hMcOZmGpfWUlEzARv0jUmLpvnU5cNYc+wLErMMbT6Cq
Cancel-Lock: sha1:Ypxi/yJLLBXWjcczSkg6HEWu0HY=
User-Agent: Pan/0.132 (Waxed in Black)
Xref: news.mathworks.com comp.soft-sys.matlab:536543


On Thu, 30 Apr 2009 18:54:02 +0000, James_F Falco wrote:

>> is there a better way to "do nothing" for some period of time
> help pause

Well, I'd looked at that but not closely enough (my bad, sorry for 
wasting peoples time).  I saw the reference to keyboard input and missed 
the (n).  Since this is needed in a "non-interactive" environment, I 
dismissed it as a non-starter.

Regarding vgoods idea to test, save your time.  I just ran the test here 
and a 60 second run of my timer consumes about 15% (as stated earlier), 
pause, on the other hand, only about 3%.  Sounds like we have a winner...

Bruce


-- 
+-------------------+---------------------------------------------------+
Bruce Bowler        | How can you be two places at once when you're not
1.207.633.9600      | anywhere at all.  - Firesign Theater   
bbowler@bigelow.org | 
+-------------------+---------------------------------------------------+