How much time between applying primer and cement is acceptable?

Should cement be applied to pipe AND fitting or is one of them only okay?