diff --git a/radio/rfsimulator/simulator.c b/radio/rfsimulator/simulator.c index ecf278ffd9..c733f4c8a2 100644 --- a/radio/rfsimulator/simulator.c +++ b/radio/rfsimulator/simulator.c @@ -1003,6 +1003,11 @@ static int rfsimulator_read(openair0_device *device, openair0_timestamp *ptimest } while (have_to_wait); } + + struct timespec start_time; + int ret = clock_gettime(CLOCK_REALTIME, &start_time); + AssertFatal(ret == 0, "clock_gettime() failed: errno %d, %s\n", errno, strerror(errno)); + // Clear the output buffer for (int a=0; asample_rate / 1e6); + } + *ptimestamp = t->nextRxTstamp; // return the time of the first sample t->nextRxTstamp+=nsamps; LOG_D(HW,