1 parent 75cf808 commit 25b0520Copy full SHA for 25b0520
1 file changed
locstat/__main__.py
@@ -129,7 +129,7 @@ def main() -> int:
129
"depth": args.max_depth,
130
}
131
output_mapping = {}
132
- epoch: float = time.time()
+ epoch: float = time.perf_counter()
133
if args.verbosity == Verbosity.BARE:
134
line_data: array = array("L", (0, 0, 0))
135
parse_directory(**kwargs, line_data=line_data)
@@ -164,7 +164,7 @@ def main() -> int:
164
output_mapping[OutputKeys.LANGUAGES] = language_record
165
166
general_metadata: dict[str, str] = {
167
- OutputKeys.TIME: f"{time.time()-epoch:.3f}s",
+ OutputKeys.TIME: f"{time.perf_counter()-epoch:.3f}s",
168
OutputKeys.SCANNED_AT: datetime.now().strftime("%d/%m/%y, at %H:%M:%S"),
169
OutputKeys.PLATFORM: platform.system(),
170
0 commit comments