Home
last modified time | relevance | path

Searched refs:to_unit (Results 1 – 2 of 2) sorted by relevance

/tools/test/connectivity/acts/framework/acts/controllers/
Dpower_metrics.py105 return self.value == other.to_unit(self.unit).value
108 return self.value < other.to_unit(self.unit).value
119 return Metric(self.value + other.to_unit(self.unit).value,
126 return Metric(self.value - other.to_unit(self.unit).value,
137 def to_unit(self, new_unit): member in Metric
189 times[START_TIMESTAMP], TIME, MILLISECOND).to_unit(
192 times[END_TIMESTAMP], TIME, MILLISECOND).to_unit(
215 Metric.amps(p[1], 'percentile_%s' % p[0]).to_unit(MILLIAMP) for p in
243 times[START_TIMESTAMP], TIME, MILLISECOND).to_unit(
246 times[END_TIMESTAMP], TIME, MILLISECOND).to_unit(
[all …]
/tools/test/connectivity/acts/framework/tests/controllers/
Dpower_metrics_test.py59 current_milliamps = current_amps.to_unit(MILLIAMP)
68 power_watts = current_amps.to_unit(WATT)