Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!yoyo.aarnet.edu.au!sirius.ucs.adelaide.edu.au!levels!marwk From: marwk@levels.sait.edu.au Newsgroups: comp.os.msdos.programmer Subject: Should the PC CLK_TCK really be (1000/55)? Message-ID: <15780.277225e2@levels.sait.edu.au> Date: 21 Dec 90 15:10:26 GMT References: <15779.2770e40e@levels.sait.edu.au> Organization: Sth Australian Inst of Technology Lines: 18 In article <15779.2770e40e@levels.sait.edu.au>, marwk@levels.sait.edu.au writes: > In time.h in TURBO C 2.0 CLK_TCK is defined to be 18.2. > > Should I alter this depending on the speed of the processor, RAM speed > etc., or is there a specific clock on the PC/AT/386,..., that always > ticks away at the same speed, namely 18.2 times/second? > > Thank you in advance. > > Ray I thank everyone for informing me that it is indeed so - there is a clock which ticks over every 55ms, which is approximately 18.17 times per second. If this is so, then would it be better to #define CLK_TCK to be (1000/55)? to provide greater accuracy? Ray