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;