general timing analysis codes for XFAST and other uses