Milliseconds Resolution

Richard Kreiss rkreiss at gccconsulting.net
Tue Sep 6 08:34:26 PDT 2016


FilePro must have a built in function which, at least counts milliseconds.  The sleep function uses milliseconds - sleep(n) where n is in milliseconds.  

Now this does not mean that filePro can read the current time down to milliseconds.

In reading through this thread, if Stanley wants to do time math using milliseconds, then won't doing a system call to an outside program, running that program, and then returning to filePro's processing, be incorrect by the time in milliseconds that it took to execute the exit, run the program and then return?


Richard Kreiss
GCC Consulting



> -----Original Message-----
> From: Filepro-list [mailto:filepro-list-
> bounces+rkreiss=verizon.net at lists.celestial.com] On Behalf Of Fairlight via
> Filepro-list
> Sent: Tuesday, September 6, 2016 12:50 AM
> To: filepro-list at lists.celestial.com
> Subject: Re: Milliseconds Resolution
> 
> Which simplicity neglects a few of the gotchas, such as needing the command to
> -not- be variable in nature.  I recall that being a limitation.
> 
> You also don't -need- to feed it input, unless it needs input.  If it's just getting a
> timestamp, that's a single read and then close the alias.
> 
> USER is a bit odd though, yeah.
> 
> m->
> 
> On Tue, Sep 06, 2016 at 02:37:16PM +1000, Ken Cole via Filepro-list thus spoke:
> > Stanley,
> >
> > USER commands can seem to be a strange animal when you first start to
> > use them.
> >
> > On very simple terms write a script that runs in a loop, waits for
> > input, sent from filePro, and then sends output, read by filePro and
> > it runs until you send it an input that triggers into stop or your
> > filePro processing ends which in turn stops the user program.
> >
> > As I said, this is in very simple terms!
> >
> > Ken
> >
> > On Tuesday, 6 September 2016, Jose Lerebours via Filepro-list <
> > filepro-list at lists.celestial.com> wrote:
> >
> > > On 09/05/2016 11:50 PM, Stanley - stanlyn.com wrote:
> > >
> > >> Hi Jose,
> > >>
> > >> |# date +"%H:%M:%S,%3N" |
> > >>>
> > >> Are you saying there is no filepro function for this and I must do
> > >> a system call to get it?  If so, then how would I use filepro to do
> > >> math on the return values?
> > >>
> > >>
> > >> Yeah, if you want to do math as precise as that, you may want to
> > >> look at
> > > using epoch time stamps.  Like Mark said in his earlier post, I am
> > > not aware of a function in filePro that would do it.
> > >
> > > What kind of math are you talking about?
> > >
> > > Going back to Mark's post, you may want to look at Perl (although I
> > > am a PHP guy myself) and write a script to handle the task and
> > > return the value you seek.  filePro has a command known as "user"
> > > which can be used in combination with your script to get the desired results.
> > >
> > > |wget -qO- http://www.timeapi.org/utc/now?\\s.\\N
> > >
> > > or
> > >
> > > |
> > > |php -r 'echo microtime(TRUE);'
> > >
> > > or
> > >
> > > |
> > > |python -c 'import time; print time.time()'
> > >
> > > or
> > >
> > > |
> > > |ruby -e 'puts Time.now.to_f'
> > >
> > > |
> > > -------------- next part -------------- An HTML attachment was
> > > scrubbed...
> > > URL: <http://mailman.celestial.com/pipermail/filepro-list/attachm
> > > ents/20160906/d42a15dd/attachment.html>
> > > _______________________________________________
> > > Filepro-list mailing list
> > > Filepro-list at lists.celestial.com
> > > Subscribe/Unsubscribe/Subscription Changes
> > > http://mailman.celestial.com/mailman/listinfo/filepro-list
> > >
> > -------------- next part -------------- An HTML attachment was
> > scrubbed...
> > URL:
> > <http://mailman.celestial.com/pipermail/filepro-list/attachments/20160
> > 906/395d9001/attachment.html>
> > _______________________________________________
> > Filepro-list mailing list
> > Filepro-list at lists.celestial.com
> > Subscribe/Unsubscribe/Subscription Changes
> > http://mailman.celestial.com/mailman/listinfo/filepro-list
> >
> 
> --
> Audio panton, cogito singularis.
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 13432 bytes
Desc: not available
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20160906/f345352e/attachment.bin>


More information about the Filepro-list mailing list