Only plot if matplotlib is installed on the system.  Otherwise just print times to a file.