If the very last enemy in a fight turns around a walks away past the edge of the screen, then the fight will end. This trick has the potential to save time, but it seems highly unlikely since you have to be completely out of the enemy's line of sight long enough for them to turn away from you AND to start walking.