aboutsummaryrefslogtreecommitdiff
path: root/mobly/base_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'mobly/base_test.py')
-rw-r--r--mobly/base_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mobly/base_test.py b/mobly/base_test.py
index 8b761fa..e4e047b 100644
--- a/mobly/base_test.py
+++ b/mobly/base_test.py
@@ -26,6 +26,7 @@ from mobly import expects
from mobly import records
from mobly import signals
from mobly import runtime_test_info
+from mobly import utils
# Macro strings for test result reporting
TEST_CASE_TOKEN = '[Test]'
@@ -351,7 +352,7 @@ class BaseTestClass(object):
content: dict, the data to add to summary file.
"""
if 'timestamp' not in content:
- content['timestamp'] = time.time()
+ content['timestamp'] = utils.get_current_epoch_time()
self.summary_writer.dump(content,
records.TestSummaryEntryType.USER_DATA)