I think the easiest way is to measure the time in your driver class. Is it OK for you? I mean something like this:
long start = new Date().getTime(); boolean status = job.waitForCompletion(true); long end = new Date().getTime(); System.out.println("Job took "+(end-start) + "milliseconds");
source share