Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Perhaps you could do it like the bash command time, whose output is a bit hard to capture...


GNU source is never a pleasure to read, but as far as I can tell the bash builtin "times" prints to stdout.

This can be observed by running:

  bash -c 'times whoami' > /dev/null




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: