🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #46631

Re: Help: Need Millisecond Timer in DJGPP

#46631
From: tsai chih-hao
Date: Mon, 07 Nov 1994 07:25
31 lines
2086 bytes
I have uploaded:

SimTel/msdos/c/
pctime10.zip    GCC/MSC srcs for millisecond resolution timing

PCTIMER is a high-resolution timing routine in the form of C functions.
You can compile and link PCTIMER to your programs in which millisecond
(or even higher) accuracy timing is required. PCTIMER is designed to
provide a timing routine with millisecond resolution. You can also
modify it to get higher resolutions. PCTIMER sets new parameters to the
8254 IC to get high frequencies of SYSTEM TIMER Interrupt (INT8). To
maintain the PC's stability, PCTIMER intercepts the INT8, only calls
the original INT8 at the frequency of 18.2 times per second.
Consequently, high-resolution timing and system stability are
simultaneously achieved. If millisecond precision in unnecessary to you,
you can also set PCTIMER to do centisecond timing. All functions are
written in C codes. There are no assembly codes at all.

Requirement: IBM-AT compatible PC. The GCC version requires 32-bit PCs
because GCC is a 32-bit compiler.

FreeWare. Uploaded by the author.

Chih-Hao Tsai
c-tsai4@uiuc.edu

--
:: Chih-Hao Tsai (c-tsai4@uiuc.edu) at Human Perception and Performance ::
:: Group, Beckman Institute for Advanced Science and Technology     and ::
:: Division of Learning and Instruction, Dept of Educational Psychology ::
:: ............ University of Illinois at Urbana-Champaign ............ ::
Technical Details
Message-ID: <39kkpa$a72@vixen.cso.uiuc.edu>
Path: arc1-ca.pugleaf.net!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!vixen.cso.uiuc.edu!uxa.cso.uiuc.edu!c-tsai4
References: <39k32k$f16@controversy.math.lsa.umich.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,c34dee110e961cdd
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1994-11-06 23:25:30 PST
Path: arc1-ca.pugleaf.net!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!vixen.cso.uiuc.edu!uxa.cso.uiuc.edu!c-tsai4
From: c-tsai4@uxa.cso.uiuc.edu (tsai chih-hao)
Newsgroups: gnu.gcc.help
Subject: Re: Help: Need Millisecond Timer in DJGPP
Date: 7 Nov 1994 07:25:30 GMT
Organization: University of Illinois at Urbana
Lines: 31
Message-ID: <39kkpa$a72@vixen.cso.uiuc.edu>
References: <39k32k$f16@controversy.math.lsa.umich.edu>
NNTP-Posting-Host: uxa.cso.uiuc.edu
X-Newsreader: TIN [version 1.2 PL2]