From: Cor Ligthert[MVP] on 15 Dec 2009 14:23 Like I wrote already don't expect any secure time whatever method you use from a Windows OS. (In all Dos versions (without Windows it was possible, but as far as I know does not any version of Visual Basic run on Dos) Therefore don't try to be secure, you will never reach it on a Windows OS. Cor "fniles" <fniles(a)pfmail.com> wrote in message news:OGO9h0PfKHA.1824(a)TK2MSFTNGP04.phx.gbl... > In our VB6 programs, we use the function Timer to calculate how long a > process takes, like so: > VB6 > MyTime = Format(Now, "dd-MMM-yyyy HH:nn:ss") & "." & Right(Timer), 2) > > The timer function returns something like: > 38624.73 > > Somebody on the forum explained that the 2 digit number after decimal > point is actually centiseconds, or ten milliseconds. > So on the example above .73 means 730 milliseconds. > That means that smallest millisecond returns from the above Timer function > is 10 milliseconds, any number between 1 - 9 milliseconds will not be > returned. > > In VB6, is there a way to get up to 1 milliseconds ? > > Thank you. >
From: Dee Earley on 16 Dec 2009 04:25
On 15/12/2009 19:23, Cor Ligthert[MVP] wrote: > (In all Dos versions (without Windows it was possible, but as far as I > know does not any version of Visual Basic run on Dos) VBDOS does :) -- Dee Earley (dee.earley(a)icode.co.uk) i-Catcher Development Team iCode Systems |