You were on the right track. I’ve applied the .MEAS directive to this simple second order RLC circuit:
I’ve chosen the components values â€‹â€‹to make it quite underdamped:
the higher value is the settling time. If you want a 2% settling time, simply set settling_percent=2.