Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: GetTimeSysInfoFunc function

by marinersk (Priest)
on Jul 27, 2015 at 22:58 UTC ( [id://1136525]=note: print w/replies, xml ) Need Help??


in reply to GetTimeSysInfoFunc function

Let's see.

Start Here

Results are less than voluminous, but under "Searches related to GetTimeSysInfoFunc Perl" we find perl get time in milliseconds, which seems reasonably related.

And then there's lots of references to Time::HiRes, and a note that says it's been part of core (i.e., you shouldn't have to install it as it should already be there) since Perl 5.7.3.

Apologies if Time::HiResis not what you were seeking; it seems fairly related to my quick skim of your question.

It does look like GetTimeSysInfoFuncprovides a metric ton of options; and if that's what you were after -- maybe it's time to write a module that investigates ways to provide all the stuff GetTimeSysInfoFuncprovides.

Assuming you are not restricted from doing so.

Replies are listed 'Best First'.
Re^2: GetTimeSysInfoFunc function
by thanos1983 (Parson) on Jul 27, 2015 at 23:18 UTC

    Hello marinersk,

    Well I have been implementing a module that it does all that for LinuxOS but I can not find a way to do it on WindowsOS.

    Yesterday I post this question How to check system's current NTP configuration on all OS?. What I found is that I can retrieve all this information on LinuxOS but WindowsOS requires Administrator access to retrieve this information.

    I have been playing around with Time::HiRes but to be honest I can not get all the information that I want or at least it looks like this. I mean for example when I am applying

    ( undef , undef , $server_precision , undef , undef ) = POSIX +::times();
    the $server_precision prints 0 but in reality it is around -23.

    So this is why I was asking for a possible module that collects these values from WindowsOS but it seems with out administrator access you can not do anything. :(

    Well any way, thank you for your time and effort reading and replying to my question.

    Seeking for Perl wisdom...on the process of learning...not there...yet!

      Ah, good efforts, and my apologies for jumping to the conclusion that you hadn't done your homework. You actually did more than I had done, so I humbly retreat to my corner.

      For what it's worth, I see value in what you are doing, but it's never been needed enough in my world to motivate me to put the effort in that you are.

      All the best in your hunt -- Windows is an oddity amongst operating systems (it took me a long time to even acknowledge that it was one).

      Good luck in the hunt -- and I mean that earnestly.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1136525]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-23 14:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found