Re: the time a program runs

2005-11-29 Thread Scott R. Godin
Octavian Rasnita wrote: Hi, I have tried to find out the time a perl program runs, and I have used: #at the start of the program: my $begin = (times)[0]; my $begin_t = time(); ... The program follows # at the end of the program: my $end = (times)[0] - $begin; my $end_t = time() - $begin_t; pr

Re: the time a program runs

2005-09-26 Thread Dan Klose
On Mon, 2005-09-26 at 06:32 -0400, Tom Allison wrote: > Octavian Rasnita wrote: > > Hi, > > > > I have tried to find out the time a perl program runs, and I have used: > > > > #at the start of the program: > > my $begin = (times)[0]; > > my $begin_t = time(); > > > > ... The program follows > >

Re: the time a program runs

2005-09-26 Thread Tom Allison
Octavian Rasnita wrote: Hi, I have tried to find out the time a perl program runs, and I have used: #at the start of the program: my $begin = (times)[0]; my $begin_t = time(); ... The program follows # at the end of the program: my $end = (times)[0] - $begin; my $end_t = time() - $begin_t; pr

Re: the time a program runs

2005-08-26 Thread John W. Krahn
Octavian Rasnita wrote: > Hi, Hello, > I have tried to find out the time a perl program runs, and I have used: > > #at the start of the program: > my $begin = (times)[0]; > my $begin_t = time(); > > ... The program follows > > # at the end of the program: > my $end = (times)[0] - $begin; > my