Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 21st, 2005, 10:05 PM   #1
Kami
Newbie
 
Join Date: Jan 2005
Posts: 21
Rep Power: 0 Kami is on a distinguished road
Pausing without using timers?

Quick question. Is there a way in C# to pause for a given length of time without using timers?
Kami is offline   Reply With Quote
Old Jun 22nd, 2005, 12:15 AM   #2
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
System.Threading.Thread.CurrentThread.Sleep(<time to pause in milliseconds>)

Pauses the current thread. If you wish to pause all threads (May I ask why?) then things become slightly more complicated.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Jun 22nd, 2005, 12:56 AM   #3
Kami
Newbie
 
Join Date: Jan 2005
Posts: 21
Rep Power: 0 Kami is on a distinguished road
Quote:
Originally Posted by Dameon
System.Threading.Thread.CurrentThread.Sleep(<time to pause in milliseconds>)

Pauses the current thread. If you wish to pause all threads (May I ask why?) then things become slightly more complicated.
That's what I was looking for. Thanks!
Kami is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:41 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC