Logging call setup time

Hi everybody!
I’ve to log the call setup time (from “Called” to “Ringing” voices).
I need to know the time elapsed from the call start to the telephone ringing. How could I do?