what you should do is take a practice run with something that you are not afraid to lose just to time out exatly how many ticks your clock is going. then put the pokemon back in again and turn off the ds one tick away from where it stopped the last time.
it also really helps if you are in a high signal area i've noticed, because it makes for a lot more consistency