Overhead of time command in unix

Viewed 2317

i was wondering what is the overhead of using the time command in unix.

i know how to use it, but i want to know how much longer the command

$ time java HelloWorld

takes on a terminal, than the command

$ java HelloWorld

I am specifically interested in how this overhead varies with the time duration of the program that is running.

context:: I am using it to measure the time taken for a bunch of long running experiments written in Java.

2 Answers
Related