diff --git a/src/tests/sensors/test-vn300.cpp b/src/tests/sensors/test-vn300.cpp index 534ef0c7a964380241e737413a7eb4d86997aad1..a026644d78448f5b9b15a753b44ef9a157d378f4 100644 --- a/src/tests/sensors/test-vn300.cpp +++ b/src/tests/sensors/test-vn300.cpp @@ -90,17 +90,14 @@ int main() for (int j = 0; j < 10; j++) { - uint64_t time_start = 0, time_end = 0; + for (int i = 0; i < 10; i++) { - time_start = 0; - time_end = 0; - time_start = TimestampTimer::getTimestamp(); + sensor.sample(); sample = sensor.getLastSample(); - time_end = TimestampTimer::getTimestamp(); - printf("Sample %i done in %" PRIu64 " microseconds\n", i, - (time_end - time_start)); + + printf("Sample %i\n", i); printf("acc: %" PRIu64 ", %.3f, %.3f, %.3f\n", sample.accelerationTimestamp, sample.accelerationX, sample.accelerationY, sample.accelerationZ);