Change samples count for calculation to time.