Hi,
You can can use:
$time1=time();
&fun;
$time2=time();
time() function returns epoch value(mili seconds) of
current time.
For more time functions----------
You can use perl module: Time::Local
--
Regards,
Nawab Ahmad
Scientist/Engineer
ISRO Satellite Centre,
Dept. of Space,Govt. of India
On 2/22/07, rockmohit <rockmohit yahoo.co.uk> wrote:
>
> Hi all.
>
> How can we get the time taken by a simple perl function
in
> milliseconds.
>
> to illustrate my problem better..see the following:
>
> my time1 =
<some_in_built_function_to_get_time_in_millisconds>;
> Calling_Simple_Perl_Function();
> my time2 =
<some_in_built_function_to_get_time_in_millisconds>;
> my totalTime = time2 - time1;
>
> is there a built-in perl function to get time in
milliseconds? if
> there is any other alternative, pls suggest.
>
> Thanks,
> rock
>
>
>
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor
--------------------~-->
Great things are happening at Yahoo! Groups. See the new
email design.
http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/ndFolB/TM
------------------------------------------------------------
--------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://g
roups.yahoo.com/group/Perl_Official/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http
://groups.yahoo.com/group/Perl_Official/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:Perl_Official-digest@yahoogroups.com
mailto:Perl_Official-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
Perl_Official-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|