On newer versions of Windows you can find your precision (quanta) by running 
'w32tm /query /status' at the command prompt.

As an example, on my Windows 7 machine I get: Precision: -6 (15.625ms per tick)

So my NAP command would only work in multiples of 15.625ms.

Don't forgot that busy machines *can* affect this as well, as your program 
might not be put back on to the CPU in time. The perils of multi-tasking 
systems...


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Wjhonson
Sent: Wednesday, January 02, 2013 10:47 PM
To: [email protected]
Subject: Re: [U2] Sleeping in Basic

The original point was to disavow anyone of the idea that you can actually NAP 
1 and expect only 1 millisecond to pass

Since the quanta aren't that small.

 

 

 

-----Original Message-----
From: LeRoy Dreyfuss <[email protected]>
To: U2 Users List <[email protected]>
Sent: Wed, Jan 2, 2013 6:55 pm
Subject: Re: [U2] Sleeping in Basic


I do admit I've forgotten what the point of this was, since this thread was 
about SLEEP and NAP.

That said, you are correct- the oconv conversion was not valid, so the original 
string was returned.

Because UV can show time() and system(12) in milliseconds (system dependent), 
it would seem to not need a mask for milliseconds.




On Wed, Jan 2, 2013 at 9:16 PM, Wjhonson <[email protected]> wrote:

>
>  Yes like I said the Oconv using MMHSM doesn't do anything.
> Your output 75575.6608 of the place TIME() is unchanged So what's 
> MMHSM supposed to be doing?
> Because it's not changing the output at all
>
>
>
>
>
>
> -----Original Message-----
> From: LeRoy Dreyfuss <[email protected]>
> To: U2 Users List <[email protected]>
> Sent: Wed, Jan 2, 2013 6:10 pm
> Subject: Re: [U2] Sleeping in Basic
>
>
> Top.
> *--: P
> 001: X = TIME()
> 002: Y = SYSTEM(12)
> 003: A = ICONV(X,'MM')
> 004: B = ICONV(Y,'MM')
> 005: PRINT X,A
> 006: PRINT Y,B
> 007: L = OCONV(X,'MMHSM')
> 008: M = OCONV(Y,'MMHSM')
> 009: PRINT L,M
> Bottom.
> *--: I
> *--: FIBR
> Filed "TEST.TIME" in file "BP".
> Compiling: Source = 'BP/TEST.TIME', Object = 'BP.O/TEST.TIME'
> *
>
> Compilation Complete.
> 75575.6608          7557566
> 75575.6608          7557566
> 75575.6608          75575.6608
> >
>
> This is 11.1.9 on Linux.
>
>
> On Wed, Jan 2, 2013 at 9:06 PM, Wjhonson <[email protected]> wrote:
>
> > On Universe 11, OCONVing it as you suggested just returns the exact 
> > same result as the plain TIME() function without any conversion.
> >
> >
> >
> >
> >
> >
> > -----Original Message-----
> > From: LeRoy Dreyfuss <[email protected]>
> > To: U2 Users List <[email protected]>
> > Sent: Wed, Jan 2, 2013 6:02 pm
> > Subject: Re: [U2] Sleeping in Basic
> >
> >
> > Don't ICONV it. Use OCONV.
> >
> > ex: OCONV(TIME(),'MMTHS')
> >
> >
> > On Wed, Jan 2, 2013 at 7:54 PM, Wjhonson <[email protected]> wrote:
> >
> > > The 'MM' conversion works with the TIME() (which returns 
> > > milliseconds) on Universe 11
> > >
> > > but for some reason is cutting off the display to only 
> > > *hundredths* of
> a
> > > second, instead of the thousandths which the milliseconds counts.
> > >
> > > So TIME() shows 60814.304
> > > but ICONV(TIME(),'MM') shows 6081430
> > >
> > > without the trailing 4 milliseconds.
> > >
> > _______________________________________________
> > U2-Users mailing list
> > [email protected]
> > http://listserver.u2ug.org/mailman/listinfo/u2-users
> >
> >
> > _______________________________________________
> > U2-Users mailing list
> > [email protected]
> > http://listserver.u2ug.org/mailman/listinfo/u2-users
> >
> _______________________________________________
> U2-Users mailing list
> [email protected]
> http://listserver.u2ug.org/mailman/listinfo/u2-users
>
>
> _______________________________________________
> U2-Users mailing list
> [email protected]
> http://listserver.u2ug.org/mailman/listinfo/u2-users
>
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

 
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to