Re: High res timer
- From: "Chris Mullins [MVP]" <cmullins@xxxxxxxxx>
- Date: Thu, 6 Sep 2007 16:43:32 -0700
This MSDN article also seems to show a decent example in Managed Code:
http://msdn2.microsoft.com/en-us/library/aa964692.aspx
--
Chris Mullins, MCSD.NET, MCPD:Enterprise, Microsoft C# MVP
http://www.coversant.com/blogs/cmullins
"Jon Slaughter" <Jon_Slaughter@xxxxxxxxxxx> wrote in message
news:mGYDi.1441$4J3.592@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Is it possible to have a synchronous thread... actually a timer that is
beyond the 1khz/1ms resolution that .NET offers?
I want to poll the parallel port at rates beyond 1khz... about 10 to 100
times that rate if possible.
Essnetially I want to monitor the parallel port for data and display it
but I need a fast but somewhat precise way of knowing the sample rate.
Doing some tests on just a simple thread I can get speeds at around 150mhz
or so with a normal priority System.Thread. I figure that since I just
need about 1/1000 of that it shouldn't be that big a deal.
Is this possible in C#.NET? If not, is it possible to write a simple
driver in unmanaged C++ that either polls the port or hooks onto an
interrupt(synced) to get the data to a C# app?
Thanks,
Jon
.
- References:
- High res timer
- From: Jon Slaughter
- High res timer
- Prev by Date: Re: High res timer
- Next by Date: Re: Firing events from within a critical section
- Previous by thread: Re: High res timer
- Next by thread: Re: High res timer
- Index(es):
Relevant Pages
|