tstart = os.time () os.execute([[SandcatCS 127.0.0.1 -hm:codescan -srcdir:"C:\WWW\"]]) tend = os.time () print (os.difftime (tend , tstart) ..' second(s)')