Click here to Skip to main content
15,904,416 members
Home / Discussions / C#
   

C#

 
AnswerRe: Generic Report Running Pin
Mycroft Holmes30-Jul-13 12:40
professionalMycroft Holmes30-Jul-13 12:40 
GeneralRe: Generic Report Running Pin
eddieangel30-Jul-13 12:49
eddieangel30-Jul-13 12:49 
GeneralRe: Generic Report Running Pin
Mycroft Holmes30-Jul-13 14:20
professionalMycroft Holmes30-Jul-13 14:20 
QuestionHow to monitor and block a registry key change? Pin
turbosupramk330-Jul-13 8:07
turbosupramk330-Jul-13 8:07 
AnswerRe: How to monitor and block a registry key change? Pin
Dave Kreskowiak30-Jul-13 9:27
mveDave Kreskowiak30-Jul-13 9:27 
GeneralRe: How to monitor and block a registry key change? Pin
turbosupramk331-Jul-13 4:13
turbosupramk331-Jul-13 4:13 
GeneralRe: How to monitor and block a registry key change? Pin
Dave Kreskowiak31-Jul-13 5:58
mveDave Kreskowiak31-Jul-13 5:58 
GeneralRe: How to monitor and block a registry key change? Pin
Eddy Vluggen31-Jul-13 8:39
professionalEddy Vluggen31-Jul-13 8:39 
AnswerRe: How to monitor and block a registry key change? Pin
FIorian Schneidereit30-Jul-13 15:54
FIorian Schneidereit30-Jul-13 15:54 
GeneralRe: How to monitor and block a registry key change? Pin
turbosupramk331-Jul-13 2:41
turbosupramk331-Jul-13 2:41 
QuestionProblem in creating Report Pin
Arun kumar Gautam30-Jul-13 3:32
Arun kumar Gautam30-Jul-13 3:32 
AnswerRe: Problem in creating Report Pin
Mycroft Holmes30-Jul-13 12:42
professionalMycroft Holmes30-Jul-13 12:42 
JokeRe: Problem in creating Report Pin
UL UL ALBAB30-Jul-13 23:32
UL UL ALBAB30-Jul-13 23:32 
QuestionSystem,Timers.Timer to slow in C# Pin
Member 994007329-Jul-13 23:28
Member 994007329-Jul-13 23:28 
AnswerRe: System,Timers.Timer to slow in C# Pin
Pete O'Hanlon30-Jul-13 0:23
mvePete O'Hanlon30-Jul-13 0:23 
GeneralRe: System,Timers.Timer to slow in C# Pin
Member 994007330-Jul-13 1:49
Member 994007330-Jul-13 1:49 
GeneralRe: System,Timers.Timer to slow in C# Pin
AmitGajjar30-Jul-13 2:41
professionalAmitGajjar30-Jul-13 2:41 
GeneralRe: System,Timers.Timer to slow in C# Pin
Member 994007330-Jul-13 2:56
Member 994007330-Jul-13 2:56 
GeneralRe: System,Timers.Timer to slow in C# Pin
AmitGajjar30-Jul-13 19:29
professionalAmitGajjar30-Jul-13 19:29 
AnswerRe: System,Timers.Timer to slow in C# Pin
Eddy Vluggen30-Jul-13 0:26
professionalEddy Vluggen30-Jul-13 0:26 
AnswerRe: System,Timers.Timer to slow in C# Pin
Alan N30-Jul-13 1:26
Alan N30-Jul-13 1:26 
GeneralRe: System,Timers.Timer to slow in C# Pin
Rob Philpott30-Jul-13 19:31
Rob Philpott30-Jul-13 19:31 
AnswerRe: System,Timers.Timer to slow in C# Pin
BillWoodruff30-Jul-13 5:06
professionalBillWoodruff30-Jul-13 5:06 
For most purposes, the advice that (always reliable) Pete O'Hanlon gave you, to use an instance of System.Diagnostics.Stopwatch: is what you need.

But, given your requirements, you may also want to examine this April 13, CodeProject article: "Microsecond and Millisecond C# Timer," by Ken Loveday: [^].

And, possibly other resources on high-precision .NET timing at: [^].

However, I do not know if any of the techniques above can meet your requirements: I have never needed higher-precision timing than that provided by 'Stopwatch.

When you use the 'Stopwatch class, I hope you don't make the same stupid mistake I made recently [^], and use Stopwatch.Elapsed.Milliseconds, thinking that gets the total time, instead of Stopwatch.TotalElapsedMilliseconds, as was kindly pointed out to me by Alan N. here on this forum: [^].

good luck, Bill

~
“This isn't right; this isn't even wrong." Wolfgang Pauli, commenting on a physics paper submitted for a journal


modified 30-Jul-13 12:16pm.

AnswerRe: System,Timers.Timer to slow in C# Pin
DaveyM6930-Jul-13 6:46
professionalDaveyM6930-Jul-13 6:46 
AnswerRe: System,Timers.Timer to slow in C# Pin
jschell30-Jul-13 8:24
jschell30-Jul-13 8:24 

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.