Is there any way that I can get PERL to give me the elapsed time that it took to calculate something? I'm trying to make my algorithm for finding prime numbers more efficient, and obviously I can't tell the differences in the time it took to generate the list, so I need a way to say "List generated in X seconds".
Any help would be much appreciated.
orwell84
7
Junior Poster
Recommended Answers
Jump to PostYou can try the Benchmark or Time::HiRes modules, they come with perl. Read the documentation and try a few things, if you get stuck post back.
All 4 Replies
KevinADC
192
Practically a Posting Shark
orwell84
7
Junior Poster
KevinADC
192
Practically a Posting Shark
orwell84
7
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.