* LC tank: with uic + initial cap voltage it rings; f0=1/(2*pi*sqrt(LC))
L1 n 0 1m
C1 n 0 100n ic=1
.tran 1u 400u uic
.control
  run
  meas tran period TRIG v(n) VAL=0 FALL=1 TARG v(n) VAL=0 FALL=2
.endc
.end
