Re: Less than a second?
On 12 Jul 2002 19:03:43 -, [EMAIL PROTECTED] (Felix Geerinckx) wrote: on Fri, 12 Jul 2002 15:35:06 GMT, Zentara wrote: On 12 Jul 2002 12:16:39 -, [EMAIL PROTECTED] (Felix Geerinckx) wrote: on Thu, 11 Jul 2002 11:26:05 GMT, Octavian Rasnita wrote: I want to calculate how much time a Perl script runs. Can you tell me how to calculate using fractions of a second? [...] The select function works too. select(undef,undef,undef,.05); gives a 5 millisecond delay perldoc -f select And how would you use this to determine the running time of a Perl program? Good question. :-) I guess you would need to use a loop and some sort of IPC. I would use time, myself. time myscript.pl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Less than a second?
Octavian Rasnita wrote: Hi all, I want to calculate how much time a Perl script runs. Can you tell me how to calculate using fractions of a second? if you are doing this in unix, have you tried the timex command? -- --- Just Your Friendly Neighborhood _SPIDEY_ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Less than a second?
on Thu, 11 Jul 2002 11:26:05 GMT, Octavian Rasnita wrote: I want to calculate how much time a Perl script runs. Can you tell me how to calculate using fractions of a second? The script may run in less than a second, but Perl always tell me 1 second, or 2 seconds, etc. Use the Time::HiRes module. See http://search.cpan.org/search?dist=Time-HiRes -- felix -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Less than a second?
On 12 Jul 2002 12:16:39 -, [EMAIL PROTECTED] (Felix Geerinckx) wrote: on Thu, 11 Jul 2002 11:26:05 GMT, Octavian Rasnita wrote: I want to calculate how much time a Perl script runs. Can you tell me how to calculate using fractions of a second? Use the Time::HiRes module. See http://search.cpan.org/search?dist=Time-HiRes The select function works too. select(undef,undef,undef,.05); gives a 5 millisecond delay perldoc -f select -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Less than a second?
on Fri, 12 Jul 2002 15:35:06 GMT, Zentara wrote: On 12 Jul 2002 12:16:39 -, [EMAIL PROTECTED] (Felix Geerinckx) wrote: on Thu, 11 Jul 2002 11:26:05 GMT, Octavian Rasnita wrote: I want to calculate how much time a Perl script runs. Can you tell me how to calculate using fractions of a second? [...] The select function works too. select(undef,undef,undef,.05); gives a 5 millisecond delay perldoc -f select And how would you use this to determine the running time of a Perl program? -- felix -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]