Milliseconds Resolution
Ken Cole
ken.m.cole at gmail.com
Mon Sep 5 21:37:16 PDT 2016
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/20160906/395d9001/attachment.html>
More information about the Filepro-list
mailing list