Click here to Skip to main content
16,005,491 members
Home / Discussions / C#
   

C#

 
GeneralRe: Parameter Passing Pin
Ennis Ray Lynch, Jr.16-Aug-06 14:19
Ennis Ray Lynch, Jr.16-Aug-06 14:19 
GeneralRe: Parameter Passing Pin
kalyanPaladugu17-Aug-06 7:02
kalyanPaladugu17-Aug-06 7:02 
GeneralRe: Parameter Passing Pin
Dustin Metzgar17-Aug-06 9:52
Dustin Metzgar17-Aug-06 9:52 
Questioncasting problem with XML DeSrialization Pin
kaldi14-Aug-06 11:06
kaldi14-Aug-06 11:06 
AnswerRe: casting problem with XML DeSrialization Pin
stancrm14-Aug-06 23:01
stancrm14-Aug-06 23:01 
QuestionHow to do sleep in microsecond Pin
kobi10i1014-Aug-06 10:10
kobi10i1014-Aug-06 10:10 
AnswerRe: How to do sleep in microsecond Pin
Judah Gabriel Himango14-Aug-06 10:13
sponsorJudah Gabriel Himango14-Aug-06 10:13 
AnswerRe: How to do sleep in microsecond [modified] Pin
Stefan Troschuetz14-Aug-06 10:25
Stefan Troschuetz14-Aug-06 10:25 
Maybe the StopWatch class can help you.
StopWatch watch = StopWatch.StartNew();
while (watch.ElapsedTicks < someValue)
{
}

somevalue has to be computed from Stopwatch.Frequency to reflect the wanted amount of microseconds. Should be some easy math but I'm too lazy and also want to leave some coding for you Smile | :)

-- modified at 16:26 Monday 14th August, 2006

Just an annotation: This way your thread doesn't really sleep but actively waits for time to go by, so this isn't really good practice and shouldn't be used often.


"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

www.troschuetz.de

AnswerRe: How to do sleep in microsecond Pin
Dave Kreskowiak14-Aug-06 10:40
mveDave Kreskowiak14-Aug-06 10:40 
GeneralRe: How to do sleep in microsecond Pin
Ed.Poore14-Aug-06 22:41
Ed.Poore14-Aug-06 22:41 
AnswerRe: How to do sleep in microsecond Pin
kalyanPaladugu14-Aug-06 11:19
kalyanPaladugu14-Aug-06 11:19 
GeneralSleep(int) is milliseconds Pin
Ennis Ray Lynch, Jr.14-Aug-06 11:57
Ennis Ray Lynch, Jr.14-Aug-06 11:57 
GeneralRe: How to do sleep in microsecond Pin
Dave Kreskowiak14-Aug-06 12:19
mveDave Kreskowiak14-Aug-06 12:19 
Answerdirectx sdk Pin
eggie514-Aug-06 17:37
eggie514-Aug-06 17:37 
GeneralRe: directx sdk Pin
Dave Kreskowiak15-Aug-06 2:09
mveDave Kreskowiak15-Aug-06 2:09 
QuestionException not thrown when it should be Pin
tachobg14-Aug-06 9:10
tachobg14-Aug-06 9:10 
AnswerRe: Exception not thrown when it should be Pin
Judah Gabriel Himango14-Aug-06 10:14
sponsorJudah Gabriel Himango14-Aug-06 10:14 
GeneralRe: Exception not thrown when it should be Pin
tachobg14-Aug-06 10:40
tachobg14-Aug-06 10:40 
AnswerRe: Exception not thrown when it should be Pin
Ennis Ray Lynch, Jr.14-Aug-06 10:43
Ennis Ray Lynch, Jr.14-Aug-06 10:43 
GeneralRe: Exception not thrown when it should be Pin
tachobg14-Aug-06 10:49
tachobg14-Aug-06 10:49 
GeneralRe: Exception not thrown when it should be Pin
Ennis Ray Lynch, Jr.14-Aug-06 11:01
Ennis Ray Lynch, Jr.14-Aug-06 11:01 
GeneralRe: Exception not thrown when it should be Pin
tachobg14-Aug-06 11:19
tachobg14-Aug-06 11:19 
GeneralRe: Exception not thrown when it should be Pin
Ennis Ray Lynch, Jr.14-Aug-06 11:56
Ennis Ray Lynch, Jr.14-Aug-06 11:56 
GeneralRe: Exception not thrown when it should be Pin
tachobg15-Aug-06 3:28
tachobg15-Aug-06 3:28 
GeneralRe: Exception not thrown when it should be Pin
tachobg15-Aug-06 3:36
tachobg15-Aug-06 3:36 

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.