lab7 refactoring
This commit is contained in:
parent
0e6246aef4
commit
63c8bacf39
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user