An exact calculation of time resolution with the scintillation detector