mirror of
https://github.com/ARM-software/devlib.git
synced 2025-04-05 09:20:03 +01:00
Instrumentation: Fix conversion between microseconds and seconds
This commit is contained in:
parent
4d95656e49
commit
2de2b36387
@ -75,12 +75,12 @@ _measurement_types = [
|
|||||||
MeasurementType('unknown', None),
|
MeasurementType('unknown', None),
|
||||||
MeasurementType('time', 'seconds',
|
MeasurementType('time', 'seconds',
|
||||||
conversions={
|
conversions={
|
||||||
'time_us': lambda x: x * 1000,
|
'time_us': lambda x: x * 1000000,
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
MeasurementType('time_us', 'microseconds',
|
MeasurementType('time_us', 'microseconds',
|
||||||
conversions={
|
conversions={
|
||||||
'time': lambda x: x / 1000,
|
'time': lambda x: x / 1000000,
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
MeasurementType('temperature', 'degrees'),
|
MeasurementType('temperature', 'degrees'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user