Just a FYI,

Never do something like what is mentioned below. Rather than sleeping it
runs using 100% cpu power (busy wait). If you plan to be waiting for an hour
that means 1 hour of full stress on the CPU. Maybe you can live with that on
a standalone system, but a multiuser system like a terminal server will not
be happy about it. Now will the other users using it!

Best regards

Thomas Turn Jensen

----- Original Message -----
From: "byteway_so" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 10, 2004 9:54 AM
Subject: [development-axapta] Re: pause(seconds)


> Thanks for your reply!
>
> It works, but I thought there would be some build in commando for
> that. Something like: sleep(int milliseconds)....
>
> But for now I think I can live with you solution:
> {
> int startTime, endTime;
> int pauseTime;
> ;
>
> startTime = WinApi::getTickCount();
>
> pauseTime = winapi::gettickcount();
> while (winapi::gettickcount()-pauseTime < 10000)
> {
>   //I am gonna wait unti the midnight hour...
> }
>
> endTime = WinApi::getTickCount();
>
> print "Wait time: ", time2StrHMS(endTime - startTime);
> pause;
> }
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>



Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to