Click here to Skip to main content
15,896,153 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I wish... Pin
MadMyche25-Apr-19 7:09
professionalMadMyche25-Apr-19 7:09 
Rant@§$%& time management - edited Pin
Nelek24-Apr-19 2:51
protectorNelek24-Apr-19 2:51 
GeneralRe: @§$%& time management Pin
  Forogar  24-Apr-19 3:10
professional  Forogar  24-Apr-19 3:10 
GeneralRe: @§$%& time management Pin
den2k8824-Apr-19 3:27
professionalden2k8824-Apr-19 3:27 
GeneralRe: @§$%& time management Pin
Nelek24-Apr-19 9:53
protectorNelek24-Apr-19 9:53 
GeneralRe: @§$%& time management Pin
theoldfool24-Apr-19 3:48
professionaltheoldfool24-Apr-19 3:48 
GeneralRe: @§$%& time management Pin
den2k8824-Apr-19 3:52
professionalden2k8824-Apr-19 3:52 
GeneralRe: @§$%& time management Pin
Munchies_Matt24-Apr-19 4:29
Munchies_Matt24-Apr-19 4:29 
Yeah, NT had a 9.8 something ms granularity, that was the smallest wait.

You can as you say change this on later OSs, but it isnt recommended.


What I have done is to use a loop count in code (the code can work out the number to count up to to for a given time period at start up).

It is interruptible, you can set the code priority (critical section etc), and it gave quite accurate timing in the end. Of course it does depend on how much hardware activity there is that really will steal the CPU from you. But in general it was pretty good.
GeneralRe: @§$%& time management Pin
den2k8824-Apr-19 5:18
professionalden2k8824-Apr-19 5:18 
GeneralRe: @§$%& time management Pin
Munchies_Matt24-Apr-19 6:03
Munchies_Matt24-Apr-19 6:03 
GeneralRe: @§$%& time management Pin
theoldfool24-Apr-19 5:02
professionaltheoldfool24-Apr-19 5:02 
GeneralRe: @§$%& time management Pin
den2k8824-Apr-19 5:13
professionalden2k8824-Apr-19 5:13 
GeneralRe: @§$%& time management Pin
Daniel Pfeffer24-Apr-19 5:15
professionalDaniel Pfeffer24-Apr-19 5:15 
GeneralRe: @§$%& time management Pin
Nelek24-Apr-19 19:12
protectorNelek24-Apr-19 19:12 
GeneralRe: @§$%& time management Pin
Daniel Pfeffer24-Apr-19 21:45
professionalDaniel Pfeffer24-Apr-19 21:45 
GeneralRe: @§$%& time management Pin
Nelek24-Apr-19 23:51
protectorNelek24-Apr-19 23:51 
GeneralRe: @§$%& time management Pin
Sander Rossel24-Apr-19 9:32
professionalSander Rossel24-Apr-19 9:32 
GeneralRe: @§$%& time management Pin
Nelek24-Apr-19 10:00
protectorNelek24-Apr-19 10:00 
GeneralAs If You Didn't Already Know PinPopular
W Balboos, GHB24-Apr-19 2:18
W Balboos, GHB24-Apr-19 2:18 
GeneralRe: As If You Didn't Already Know Pin
glennPattonWork324-Apr-19 2:31
professionalglennPattonWork324-Apr-19 2:31 
GeneralRe: As If You Didn't Already Know Pin
Marc Clifton24-Apr-19 4:22
mvaMarc Clifton24-Apr-19 4:22 
GeneralRe: As If You Didn't Already Know Pin
Rajesh R Subramanian24-Apr-19 7:08
professionalRajesh R Subramanian24-Apr-19 7:08 
GeneralRe: As If You Didn't Already Know Pin
ZurdoDev24-Apr-19 11:02
professionalZurdoDev24-Apr-19 11:02 
GeneralRe: As If You Didn't Already Know Pin
Richard Deeming24-Apr-19 8:47
mveRichard Deeming24-Apr-19 8:47 
GeneralRe: As If You Didn't Already Know Pin
Mark_Wallace24-Apr-19 10:52
Mark_Wallace24-Apr-19 10:52 

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.