Optionally log to syslog, and print timing info.