   Wait State
  I am making a program that will update a file every 15 or so minutes... but i want it to use as few cycles as possible when idle... and still be able to respond to the input (gonna be put in system tray). What should i use? Sleep()? or just use the basic windows msg loop?I''m thinking about making it C++ or C#, would appreciate both ways. 
  also.. this is non programming related... but how do i make an HTML file(webpage) reload itself every 15 minutes? ;  Just use the normal message loop. Your app won''t suck down many cycles when it''s just waiting for a timer message. ;quote:Original post by krakrazor   also.. this is non programming related... but how do i make an HTML file(webpage) reload itself every 15 minutes?   Ah! Thread hijacker!  Well...anyways...to answer your question.. you can use the HTML Meta tag and do it like this:<meta http-equiv="Refresh" content="900" url="http://blah.com">with the content number being in seconds..so 15 seconds: 15x60=900But, I myself wouldn't use this.  I'd either use php or &#106avascript.EDIT: Oh wait, you're the OP. Lol.  oops!Charles Hwang -aka Tazel[Maxedge My Site(UC)|E-mail|NeXe|NeHe|SDL][Google|Dev-C++|GDArticles|C++.com|MSDN] [edited by - Skybin on February 13, 2004 11:08:01 PM]