Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!newsfeed.kamp.net!newsfeed0.kamp.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Karl Wochele Newsgroups: comp.lang.clipper.visual-objects Subject: Re: How to check if 1400 ms have passed? Date: Mon, 05 Sep 2011 15:27:46 +0200 Lines: 49 Message-ID: <9ck12iFbfvU1@mid.individual.net> References: <1qq76794pr6o8jqfmcepteronclarh2kkd@4ax.com> <9cj9ofFa16U1@mid.individual.net> <9cjqtgFm20U1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net nYSgJpsGEXF4pId7Ve4arQNi6fN9K+kjmlYnffqCXcaohEM0Bj Cancel-Lock: sha1:OdesZ3dTrxm2AWh8KDO5qI5enlg= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1 In-Reply-To: Xref: x330-a1.tempe.blueboxinc.net comp.lang.clipper.visual-objects:1949 Hello Dick, > I am afraid not. Seconds returns seconds, not milliseconds. So even if > I multiply it with a million, I can still only measure if 1 seconds > passed or 2 but not 1,4. well, not over here... I just tested ? Seconds() Sleep(10) ? Seconds() Sleep(10) ? Seconds() Sleep(10) ? Seconds() Sleep(10) ? Seconds() The result was 55369,40 55369,42 55369,43 55369,45 55369,47 which means seconds() has a resolution of 1/100 of a second. This might be hardware-related but seconds() definitely returns a float. Karl Am 05.09.2011 15:14, schrieb D.J.W. van Kooten: > On Mon, 05 Sep 2011 13:42:40 +0200, Karl Wochele > wrote: > >> seconds() should be the solution. Multiply the result by 1000 and you >> will have milliseconds... >> > > Hello Karl, > > > I am afraid not. Seconds returns seconds, not milliseconds. So even if > I multiply it with a million, I can still only measure if 1 seconds > passed or 2 but not 1,4. > > Dick