Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!rutgers!mcnc!duke!dukempd!fang From: fang@dukempd.phy.duke.edu (Fang Zhong) Newsgroups: comp.sys.ibm.pc Subject: Counting time intervals in QuickC Message-ID: <809@dukempd.phy.duke.edu> Date: 10 Sep 89 06:53:52 GMT Organization: Duke University Physics Dept.; Durham, N.C. Lines: 19 I want to be able to count time intervals with the resolution of 1/100 second. I tried both "ftime()" and "clock()" functions in MS-C. I found that both the functions gave the error results when it jumps from 1.90 to 2.05 or whenever it crosses the second. Anyone who has QuickC 2.0 can try the sample program "Sieve.c". Add a loop to the main program to repeat. Change 10000 in the original loops to 1000 to reduce the waiting time. It is found that the results are not same. I have tried this modified program on different machines. It gave me the same error. I do not know if this is the problem of MS-C or just PC. Any idea is approciated. Please answear directly. -- My Name 1-919-684-XXXX Duke University Dept. of Physics change_this@phy.duke.edu Durham, N.C. 27706