depending of what's around... you may want to use an internal timer, or sim it with your code in MPLAB using StopWatch.