b9da00203b539b5a60692de292a101bb555615e0
[platform/upstream/hailort.git] /
1 from hailo_platform.drivers.hailort.pyhailort import (DvmTypes, PowerMeasurementTypes,  # noqa F401
2                                                       SamplingPeriod, AveragingFactor,
3                                                       HailoPowerMeasurementUtils)
4
5 """ Amount of time between each power measurement interval.
6         The default values for provides by the sensor a new value every:
7         2 * sampling_period (1.1) * averaging_factor (256) [ms].
8         Therefore we want it to be the period of time that the core will sleep between samples,
9         plus a factor of 20 percent  """
10 DEFAULT_POWER_MEASUREMENT_DELAY_PERIOD_MS = int((HailoPowerMeasurementUtils.return_real_sampling_period(SamplingPeriod.PERIOD_1100us) / 1000.0 *
11                                                 HailoPowerMeasurementUtils.return_real_averaging_factor(AveragingFactor.AVERAGE_256)  * 2) * 1.2)