views:

75

answers:

2

Is there a standard way of logging the time Quartz takes to execute a task? I'm open to Spring based solutions as well, as I'm using both.

+3  A: 

You can use a general purpose timing library, such as ERMA. It integrates very nicely with spring.

David Rabinowitz
+1 interesting, hadn't seen that before
skaffman
+2  A: 

You could implement a JobListener and add it as a global job listener to the scheduler.

This will give you some hooks on when a job is about to be executed and when it has finished executing. You should be able to do something with these hooks to record the start and end times of the jobs, and then log the run time.

A_M