Re: accurate timer
From: Sigurd Stenersen (sigurds_at_utvikling.com)
Date: 09/17/04
- Previous message: lallous: "Re: How to check code section of address"
- In reply to: GuitarBill: "Re: accurate timer"
- Next in thread: GuitarBill: "Re: accurate timer"
- Reply: GuitarBill: "Re: accurate timer"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 17 Sep 2004 08:52:49 +0200
GuitarBill wrote:
> You're going to have to explain this further:
>>> ...because you will spend more of your timeout period running loop
>>> code.
It's quite simple. If you use timeBeginPeriod() and Sleep() you give up the
CPU while waiting. I think the same might be the case for
CreateWaitableTimer(). On the other hand, if you're using
QueryPerformanceCounter() what are you going to do while you wait for your
timeout to expire ?
I didn't say you WILL hog the CPU, I said you'll have to be real careful NOT
to.
-- Sigurd http://utvikling.com
- Previous message: lallous: "Re: How to check code section of address"
- In reply to: GuitarBill: "Re: accurate timer"
- Next in thread: GuitarBill: "Re: accurate timer"
- Reply: GuitarBill: "Re: accurate timer"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|