Python run command line (time)
        Posted  
        
            by pns
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by pns
        
        
        
        Published on 2010-04-18T15:57:08Z
        Indexed on 
            2010/04/18
            16:03 UTC
        
        
        Read the original article
        Hit count: 382
        
Hi,
I want to run the 'time' unix command from a Python script, to time the execution of a non Python app. I would use the os.system method. Is there any way to save the output of this in Python? My goal is to run the app several times, save their execution times and then do some statistics on them.
Thank You
© Stack Overflow or respective owner