HighTechTalks DotNet Forums  

pause in microsecund

Dotnet Framework (ADO.net) microsoft.public.dotnet.framework.adonet


Discuss pause in microsecund in the Dotnet Framework (ADO.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
alfa
 
Posts: n/a

Default pause in microsecund - 01-26-2010 , 03:56 PM






I have set pause to microsecund. I have Microsoft Development Environment
2002 (ver.7.0.9466) and .NET Framework 1.0 (ver 1.0.3705) and
Stopwatch stopWatch = new Stopwatch(); don't work

How can I do it.

Reply With Quote
  #2  
Old   
Alexey Smirnov
 
Posts: n/a

Default Re: pause in microsecund - 01-31-2010 , 04:57 PM






On Jan 26, 10:56*pm, "alfa" <a... (AT) alfa (DOT) hr> wrote:
Quote:
I have set pause to microsecund. I have Microsoft Development Environment
2002 (ver.7.0.9466) and .NET Framework 1.0 (ver 1.0.3705) and
Stopwatch stopWatch = new Stopwatch(); don't work

How can I do it.
Use Threading.Thread.Sleep

Imports System.Threading

Class Example

Shared Sub Main()

For i As Integer = 0 To 4
Console.WriteLine("Sleep for 2 seconds.")
Thread.Sleep(2000)
Next

Console.WriteLine("Main thread exits.")
End Sub
End Class

http://msdn.microsoft.com/en-us/library/d00bd51t.aspx

Hope this helps

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.