Move Time to types
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
#
|
||||
# Copyright(c) 2019-2021 Intel Corporation
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
#
|
||||
|
||||
from attotime import attotimedelta
|
||||
|
||||
|
||||
class Time(attotimedelta):
|
||||
def total_microseconds(self):
|
||||
return self.total_nanoseconds() / 1_000
|
||||
|
||||
def total_milliseconds(self):
|
||||
return self.total_nanoseconds() / 1_000_000
|
Reference in New Issue
Block a user