Re: clocking subprocesses

2008-03-03 Thread Karthik Gurusamy
On Mar 3, 9:57 am, [EMAIL PROTECTED] wrote: > Hi, > > I've seen several threads on this subject, but haven't (yet) run > across one that answers my specific questions. This should be really > easy for someone, so here goes: > > I'm running some numerical simulations under Ubuntu, and using Python

Re: clocking subprocesses

2008-03-03 Thread Matt Nordhoff
[EMAIL PROTECTED] wrote: > On Mar 3, 12:41 pm, Preston Landers <[EMAIL PROTECTED]> wrote: >> Run your command through the "time" program. You can parse the output >> format of "time", or set a custom output format. This mostly applies >> to Unix-like systems but there is probably an equivalent s

Re: clocking subprocesses

2008-03-03 Thread barnburnr
On Mar 3, 12:41 pm, Preston Landers <[EMAIL PROTECTED]> wrote: > > Run your command through the "time" program. You can parse the output > format of "time", or set a custom output format. This mostly applies > to Unix-like systems but there is probably an equivalent somewhere on > Windows. > > P

Re: clocking subprocesses

2008-03-03 Thread Preston Landers
On Mar 3, 11:57 am, [EMAIL PROTECTED] wrote: > So, long story short, I need to get CPU time of something I call using > subprocess.call().   Run your command through the "time" program. You can parse the output format of "time", or set a custom output format. This mostly applies to Unix-like sy