From 16d14579559f918b72039ad2b905b5bf65748314 Mon Sep 17 00:00:00 2001 From: sneaxiy Date: Tue, 5 Sep 2023 23:47:02 +0800 Subject: [PATCH] change time.time to time.time_ns --- .../distributed/fleet/meta_parallel/pipeline_parallel.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/paddle/distributed/fleet/meta_parallel/pipeline_parallel.py b/python/paddle/distributed/fleet/meta_parallel/pipeline_parallel.py index 6306881bdd2..282358675a3 100644 --- a/python/paddle/distributed/fleet/meta_parallel/pipeline_parallel.py +++ b/python/paddle/distributed/fleet/meta_parallel/pipeline_parallel.py @@ -48,17 +48,17 @@ class ChunkTimer: self.reset() def reset(self): - self.begin = time.time() + self.begin = time.time_ns() self.records.clear() def start(self, name): paddle.device.cuda.synchronize() - t = time.time() + t = time.time_ns() self.records.append([name, t, None]) def end(self, name): paddle.device.cuda.synchronize() - t = time.time() + t = time.time_ns() self.records[-1][-1] = t def export_info(self): -- GitLab