How to Create Timer?
How to Create Timer?
How to Create Timer?
How to Create Timer?
How to Create Timer?
How to Create Timer? How to Create Timer? How to Create Timer? How to Create Timer? How to Create Timer? How to Create Timer? How to Create Timer? How to Create Timer?
How to Create Timer? How to Create Timer?
How to Create Timer?
Go Back  Xtreme Visual Basic Talk > > > How to Create Timer?


Reply
 
Thread Tools Display Modes
  #1  
Old 10-18-2005, 11:28 AM
EchoAngel911 EchoAngel911 is offline
Regular
 
Join Date: Jul 2003
Posts: 55
Default How to Create Timer?


Hello Everyone!

I was wondering how i can do this:

create a certain time timer, like say 0.4 ms or even less for a given time

then during this period, if there is some activate input, do something
else waiting till the period expires , then do something else
Reply With Quote
  #2  
Old 10-18-2005, 05:06 PM
gigemboy's Avatar
gigemboy gigemboy is offline
Centurion
 
Join Date: Oct 2005
Location: College Station, TX
Posts: 156
Default

Look at the System.Windows.Forms.Timer class, the interval is in milliseconds, so the least interval you can go is 1 millisecond...
__________________
NOTE: My code will usually get the job done, but it is not the prettiest. If you see of a way to make it more efficient or to look more elegant, please feel free to comment on it :) Im still learning...
Reply With Quote
  #3  
Old 10-19-2005, 01:53 PM
bear24rw's Avatar
bear24rw bear24rw is offline
Contributor
 
Join Date: May 2004
Location: NJ
Posts: 477
Default

.4 ms is a pretty short time... and like gigemboy said, timers are in milliseconds, and even so you can't enter a decimal for it. I even looked at thread.sleep() but that only takes milliseconds in integers also.
__________________
Use[vb][/vb] tags when posting code.
Reply With Quote
Reply


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 Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
How to Create Timer?
How to Create Timer?
How to Create Timer? How to Create Timer?
How to Create Timer?
How to Create Timer?
How to Create Timer? How to Create Timer? How to Create Timer? How to Create Timer? How to Create Timer? How to Create Timer? How to Create Timer?
How to Create Timer?
How to Create Timer?
 
How to Create Timer?
How to Create Timer?
 
-->