For Standard (non-cgear abuse): Hit your target time. Do any frame and/or PID advancements if necessary. Enter battle. Catch it. You'll have to lose against N to check the legend's nature/IVs. Do not beat N and Ghetsis if you are unsure of its nature/IVs because the game will save after you defeat them.