Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 14265
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: Mon Jul 07 02:20:45 CEST 2025

Total time taken to generate the page: 0.03798 seconds