U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » is there a function to stop the program N milliseconds?
Re: is there a function to stop the program N milliseconds? [message #11854 is a reply to message #11842] Fri, 28 September 2007 11:41 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
forlano wrote on Thu, 27 September 2007 09:25

Hello,

I tried Wait(1000) but the compiler complains:

C:\MyApps\GuiStableMarriage\StableMarriage.cpp:68: error: 'Wait' was not declared in this scope

I need to pause the program to let the user to observe some calculation.
Thanks,
Luigi



Sleep(1000) is possible, but it will completely freeze your code for 1 second, including repainting.

I think you should rather use timer for this...

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Crash on LoadFromFile
Next Topic: How to read file into Memory
Goto Forum:
  


Current Time: Tue Sep 08 20:05:28 GMT+2 2026

Total time taken to generate the page: 0.00545 seconds