Article View: alt.computer.drivers.wanted
Article #130Re: Windows 2000 Microsecond Timer Driver
From: jim.conyngham
Date: Mon, 05 Jun 2000 00:00
Date: Mon, 05 Jun 2000 00:00
29 lines
1971 bytes
1971 bytes
Ah, but HOW would you "regularly interrupt program execution"? In article <8ggcq7$jmp$1@hyperion.triode.net.au>, <telford@xenon.triode.net.au> wrote: > In alt.mud.programming CoolFish <coolfish@bigpond.com> wrote: [snipped] > > with an Intel Pentium (x86) processor running the WIndows 2000 or Win NT > > operatinf system. > > The driver has to provide for initialising, starting, stopping and reading > > the timer. The timer will be > > used for timing the executions of a small segment of code within a program. > > I hope I'm not too rude in saying that this is a really shithouse way to > time code execution. If you want your code to run fast and need to identify > where the time is spent then regularly interrupt the execution and look > at the program counter value (read how profiling works with linux/gcc/gprof). > After time you see which regions the program counter is most often in. > Sent via Deja.com http://www.deja.com/ Before you buy.
Technical Details
Message-ID:
<8hh3cq$kd2$1@nnrp1.deja.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<BpnW4.40480$PL4.868525@ozemail.com.au> <8ggcq7$jmp$1@hyperion.triode.net.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fae8e,760f1893d7f968a8 X-Google-Attributes: gidfae8e,public X-Google-Thread: 10804c,760f1893d7f968a8 X-Google-Attributes: gid10804c,public X-Google-Thread: 115b28,760f1893d7f968a8 X-Google-Attributes: gid115b28,public X-Google-Thread: 10c4a9,760f1893d7f968a8 X-Google-Attributes: gid10c4a9,public From: jim.conyngham@amd.com Subject: Re: Windows 2000 Microsecond Timer Driver Date: 2000/06/05 Message-ID: <8hh3cq$kd2$1@nnrp1.deja.com> X-Deja-AN: 631429230 References: <BpnW4.40480$PL4.868525@ozemail.com.au> <8ggcq7$jmp$1@hyperion.triode.net.au> X-Http-Proxy: 1.0 x59.deja.com:80 (Squid/1.1.22) for client 139.95.251.1 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon Jun 05 20:43:10 2000 GMT X-MyDeja-Info: XMYDJUIDjimconyngham Newsgroups: alt.computer.drivers.wanted,alt.mud.programming,alt.pizza.delivery.drivers,cis.winnt.drivers X-Http-User-Agent: Mozilla/4.61 [en] (WinNT; U)