From 63c8bacf39a699fc363c778312dde23c6286e0f0 Mon Sep 17 00:00:00 2001 From: parap Date: Tue, 23 May 2023 14:24:57 +0400 Subject: [PATCH] lab7 refactoring --- src/main/java/org/dbms/data/DataPerformMongo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/dbms/data/DataPerformMongo.java b/src/main/java/org/dbms/data/DataPerformMongo.java index 71d7b26..af5da82 100644 --- a/src/main/java/org/dbms/data/DataPerformMongo.java +++ b/src/main/java/org/dbms/data/DataPerformMongo.java @@ -119,9 +119,9 @@ public class DataPerformMongo { Car car = new Car(models[modelIndex], generateDate(), cost, parkings.get(rnd.nextInt(parkings.size()))); - long start = System.nanoTime(); + long start = System.currentTimeMillis(); carRepo.insert(car); - long end = System.nanoTime(); + long end = System.currentTimeMillis(); res += end - start; } return res;