Click here to Skip to main content
15,908,264 members
Home / Discussions / C#
   

C#

 
GeneralRe: Sin graphic algorithm Pin
Werdna18-Feb-04 5:20
Werdna18-Feb-04 5:20 
Generalhigh precision event triggering in c# Pin
SIDDHARTH_JAIN17-Feb-04 19:50
SIDDHARTH_JAIN17-Feb-04 19:50 
I have an application in which I require event triggers every 1-5ms or so. I am using C# and as far as I can tell, the usual triggering method in C# actually uses the DateTime.Now.Ticks
property to generate event triggers. Thus its resolution is also limited to the resolution of DateTime.Now.Ticks which is 15.625 ms on my m/c (i.e. the smallest time interval whch DateTime.Now.Ticks can measure is 15.625 ms).
If I set my trigger interval to anywhere between 1 - 15 ms I actually get triggers only
after 15.625 ms. If I set my trigger interval to 16-31 ms I get triggers after
every 31.25 ms and so on. I can email you a .cs file that illustrates this point. If you run the program it asks you the trigger interval you want to set. Then it generates around 200 triggers and saves the measured intervals (using QueryPerformanceCounter) in a file.

Can anyone tell me if its possible to get triggers every 5ms or so?
GeneralRe: high precision event triggering in c# Pin
Member 26118818-Feb-04 2:54
Member 26118818-Feb-04 2:54 
GeneralRe: high precision event triggering in c# Pin
SIDDHARTH_JAIN18-Feb-04 11:36
SIDDHARTH_JAIN18-Feb-04 11:36 
GeneralRe: high precision event triggering in c# Pin
scadaguy18-Feb-04 4:20
scadaguy18-Feb-04 4:20 
QuestionWhat is the correspondence .Net Class? Pin
EastDragon17-Feb-04 19:47
EastDragon17-Feb-04 19:47 
AnswerRe: What is the correspondence .Net Class? Pin
Heath Stewart17-Feb-04 20:00
protectorHeath Stewart17-Feb-04 20:00 
GeneralC# scripts to validate zip codes & strings Pin
Reed Eichner17-Feb-04 17:56
Reed Eichner17-Feb-04 17:56 
GeneralRe: C# scripts to validate zip codes & strings Pin
John Kuhn17-Feb-04 19:44
John Kuhn17-Feb-04 19:44 
GeneralRe: C# scripts to validate zip codes & strings Pin
Reed Eichner17-Feb-04 19:57
Reed Eichner17-Feb-04 19:57 
GeneralRe: C# scripts to validate zip codes & strings Pin
Heath Stewart17-Feb-04 20:04
protectorHeath Stewart17-Feb-04 20:04 
GeneralRe: C# scripts to validate zip codes & strings Pin
John Kuhn17-Feb-04 20:09
John Kuhn17-Feb-04 20:09 
QuestionHow to know how much memory my app use? Pin
god4k17-Feb-04 15:14
god4k17-Feb-04 15:14 
AnswerRe: How to know how much memory my app use? Pin
Heath Stewart17-Feb-04 19:54
protectorHeath Stewart17-Feb-04 19:54 
GeneralIntergration with phones Pin
LanUx17-Feb-04 14:45
LanUx17-Feb-04 14:45 
GeneralRe: Intergration with phones Pin
Heath Stewart17-Feb-04 19:48
protectorHeath Stewart17-Feb-04 19:48 
GeneralCrystal reports and Sql Server Stored Procedures Pin
yetanotherchris17-Feb-04 14:06
yetanotherchris17-Feb-04 14:06 
GeneralRe: Crystal reports and Sql Server Stored Procedures Pin
Heath Stewart17-Feb-04 19:41
protectorHeath Stewart17-Feb-04 19:41 
GeneralRe: Crystal reports and Sql Server Stored Procedures Pin
yetanotherchris18-Feb-04 12:58
yetanotherchris18-Feb-04 12:58 
GeneralRe: Crystal reports and Sql Server Stored Procedures Pin
Heath Stewart19-Feb-04 3:05
protectorHeath Stewart19-Feb-04 3:05 
GeneralWeird Problem: if Interface and Remote Object are in same namespace, wsdl file couldn't display. Pin
Anonymous17-Feb-04 13:14
Anonymous17-Feb-04 13:14 
GeneralListViewSubItem Pin
Werdna17-Feb-04 13:13
Werdna17-Feb-04 13:13 
GeneralRe: ListViewSubItem Pin
Heath Stewart17-Feb-04 13:22
protectorHeath Stewart17-Feb-04 13:22 
GeneralRe: ListViewSubItem Pin
Werdna17-Feb-04 13:32
Werdna17-Feb-04 13:32 
GeneralMap a Network Drive in C# Pin
Guinness4Strength17-Feb-04 10:53
Guinness4Strength17-Feb-04 10:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.