diff --git a/src/ddsrt/include/dds/ddsrt/time.h b/src/ddsrt/include/dds/ddsrt/time.h index a604a5e..61992f8 100644 --- a/src/ddsrt/include/dds/ddsrt/time.h +++ b/src/ddsrt/include/dds/ddsrt/time.h @@ -86,16 +86,6 @@ DDS_EXPORT dds_time_t dds_time(void); */ DDS_EXPORT void dds_sleepfor (dds_duration_t reltime); -/** - * @brief Suspend execution of calling thread until absolute time n elapsed. - * - * Execution is suspended until the given absolute time elapsed. Should the - * call be interrupted, it is re-entered with the remaining time. - * - * @param[in] abstime Absolute time in nanoseconds since UNIX Epoch. - */ -DDS_EXPORT void dds_sleepuntil (dds_time_t abstime); - /** * @brief Get high resolution, monotonic time. * diff --git a/src/ddsrt/src/time.c b/src/ddsrt/src/time.c index a3d474f..8dfa587 100644 --- a/src/ddsrt/src/time.c +++ b/src/ddsrt/src/time.c @@ -35,14 +35,6 @@ void dds_sleepfor(dds_duration_t n) } #endif -void dds_sleepuntil(dds_time_t abstime) -{ - dds_time_t now = dds_time(); - - if (abstime > now) - dds_sleepfor (abstime - now); -} - size_t ddsrt_ctime(dds_time_t n, char *str, size_t size) {