If you mean just the time on the wheel, it's pretty straightforward. They load up the dyno, run you at around 1500 RPM for 30 seconds, then run you at around 3500 RPM for another 30 seconds. The key to passing is go in there with your cats hotter than heck. Put the best possible gas in the car, run the car on the highway between second and third gear at around 50-70 mph for at least ten minutes to burn out any residue in the cats and on the sensors, and drive straight onto the dyno. If the casts are hot enough, they'll burn anything off that might otherwise fail you.
If you left your car sitting for too long with a dead battery, you'll fail just because of that. What you have to do is drive for about 40 miles at a constant 50 mph to allow the PCM to re-learn what it is supposed to re-learn.