Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #1949

Re: How to check if 1400 ms have passed?

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 <kw@e﹐s-system.de>
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> (permalink)
References <1qq76794pr6o8jqfmcepteronclarh2kkd@4ax.com> <9cj9ofFa16U1@mid.individual.net> <rrb967to01st5cbgren0pudbds8u99hk46@4ax.com> <9cjqtgFm20U1@mid.individual.net> <ami967p8dm7etjloitrugfh6pm4oo199av@4ax.com>
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 <ami967p8dm7etjloitrugfh6pm4oo199av@4ax.com>
Xref x330-a1.tempe.blueboxinc.net comp.lang.clipper.visual-objects:1949

Show key headers only | View raw


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<kw@e©os-system.de>
> 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

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to check if 1400 ms have passed? D.J.W. van Kooten <public@ic2remove.this.com> - 2011-09-04 23:25 +0200
  Re: How to check if 1400 ms have passed? dlzc <dlzc1@cox.net> - 2011-09-04 14:50 -0700
    Re: How to check if 1400 ms have passed? D.J.W. van Kooten <public@ic2remove.this.com> - 2011-09-05 08:51 +0200
      Re: How to check if 1400 ms have passed? dlzc <dlzc1@cox.net> - 2011-09-05 12:05 -0700
        Re: How to check if 1400 ms have passed? "Willie Moore" <williem@wmconsulting.com> - 2011-09-05 15:10 -0500
          Re: How to check if 1400 ms have passed? D.J.W. van Kooten <public@ic2remove.this.com> - 2011-09-06 11:13 +0200
      Re: How to check if 1400 ms have passed? malcolm gray <malcolm.gray@ntlworld.com> - 2011-09-06 11:32 +0100
  Re: How to check if 1400 ms have passed? "Bernhard Mayer" <Idonotexisthere@nowhere.com> - 2011-09-05 07:32 +0200
    Re: How to check if 1400 ms have passed? D.J.W. van Kooten <public@ic2remove.this.com> - 2011-09-05 08:48 +0200
  Re: How to check if 1400 ms have passed? Karl Wochele <kw@e©os-system.de> - 2011-09-05 08:49 +0200
    Re: How to check if 1400 ms have passed? D.J.W. van Kooten <public@ic2remove.this.com> - 2011-09-05 13:16 +0200
      Re: How to check if 1400 ms have passed? Karl Wochele <kw@e©os-system.de> - 2011-09-05 13:42 +0200
        Re: How to check if 1400 ms have passed? D.J.W. van Kooten <public@ic2remove.this.com> - 2011-09-05 15:14 +0200
          Re: How to check if 1400 ms have passed? Karl Wochele <kw@e©os-system.de> - 2011-09-05 15:27 +0200
            Re: How to check if 1400 ms have passed? D.J.W. van Kooten <public@ic2remove.this.com> - 2011-09-06 10:57 +0200
  Re: How to check if 1400 ms have passed? E®!k \\/!$$E® <nospam@nospam.url> - 2011-09-06 09:46 +0200
    Re: How to check if 1400 ms have passed? E®!k \\/!$$E® <nospam@nospam.url> - 2011-09-06 10:18 +0200
      Re: How to check if 1400 ms have passed? Karl Wochele <kw@e©os-system.de> - 2011-09-06 10:25 +0200
        Re: How to check if 1400 ms have passed? E®!k \\/!$$E® <nospam@nospam.url> - 2011-09-06 10:30 +0200
    Re: How to check if 1400 ms have passed? Karl Faller <k.faller_withoutthat_@onlinehome.de> - 2011-09-06 10:29 +0200
      Re: How to check if 1400 ms have passed? E®!k \\/!$$E® <nospam@nospam.url> - 2011-09-06 10:47 +0200
  Re: How to check if 1400 ms have passed? "Dirk (Belgium)" <dirk.dot.herijgers@pbprojects.dot.be> - 2011-09-06 08:15 +0000

csiph-web