http://www.perlmonks.org?node_id=1152237


in reply to Finding the run time of a Fork process

Why do you keep telling 'it seems'. Tell us what actually happened. Surely you realize no one is going to run that stuff.

As for better way, see times, POSIX::times, maybe even getrusage.

  • Comment on Re: Finding the run time of a Fork process

Replies are listed 'Best First'.
Re^2: Finding the run time of a Fork process
by edimusrex (Monk) on Jan 07, 2016 at 19:45 UTC

    What I mean is that the first one that runs print out an expected 4 seconds or so but the next one appears to be adding an additional 4 seconds to the it meaning that if I run 5 processes they (for example) go 4, 8, 12, 16, 20 etc instead of an expected 4 seconds per thread (on average). As I am typing this I just realized that it may be correct as my webservice may only be allowing 1 process to interact with it at a time in which case my output is correct. I'll investigate that aspect of it more.

    Thanks again