sanjay nayak has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: How to get the Millisecond from the system time?
by ikegami (Patriarch) on Nov 08, 2006 at 07:24 UTC
    Time::HiRes's time.
    use Time::HiRes qw( time ); my $time = time; my ($s, $m, $h, $D, $M, $Y) = localtime($time); my $ms = ($time - int($time)) * 1000;

    Older versions of Time::HiRes on Windows returned low resolution values for time. This has been fixed in 1.53.

Re: How to get the Millisecond from the system time?
by davorg (Chancellor) on Nov 08, 2006 at 09:20 UTC

    Please learn to check the FAQ when you have questions like this.

    How can I measure time under a second?.

    Many people put a lot of time and effort into compiling the FAQs. Sometimes it seems like they are wasting their time.

    --
    <http://dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg

      Sometimes it seems like they are wasting their time.

      ...well, no. :-})

      I agree with ( and ++ ) what I think daveog is driving at, but believe that point is perhaps better phrased as "folk like the OP are wasting the time of the good monks compiling FAQS, Categorized Q&A, and so on...."

      ...For that reason, I have downvoted -- something I rarely do -- the grandparent, whose author has previously (on numerous occasions) been advised to search and/or supersearch .