measure time (hopefully in milliseconds)

T

Takashi Yamauchi

I am a novice perl learner. If this question is one of FAQ, please direct
me to the web site where I can get an answer.

I use $^T to measure time (e.g., the time that a person spent on reading a
text).
$^T gives me the running time in seconds. This is good. But I want to have
a more accurae measure of timing (hopefully in miliseconds, or 10 or 100
miliseconds).

Could anyone show me how to measure time in miliseconds (or better than
seconds)?

Thank you

Takashi Yamauchi
 
T

Tintin

Takashi Yamauchi said:
I am a novice perl learner. If this question is one of FAQ, please direct
me to the web site where I can get an answer.

No need to access a website. Type in

perldoc -q "measure time"

from your command prompt.
 
D

dan baker

Takashi Yamauchi said:
I am a novice perl learner. If this question is one of FAQ, please direct
me to the web site where I can get an answer.
...
Could anyone show me how to measure time in miliseconds (or better than
seconds)?
------------------------------

in your local perl documentation, look up the module Time::HiRes

a good place to start with questions is your locally installed FAQs,
then search this newsgroup for old postings, maybe check CPAN.org then
post a question.

d
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,161
Messages
2,570,892
Members
47,430
Latest member
7dog123

Latest Threads

Top