Deprecate rs_usleep as it is not useful anymore

C++11 standard library offer better functions
This commit is contained in:
Gioacchino Mazzurco 2019-02-13 17:07:03 -03:00
parent d7ecc2686f
commit 7a2c81d06b
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051

View File

@ -28,6 +28,7 @@
#include <cstdint>
#endif
#include <ctime> // Added for comfort of users of this util header
#include "util/rsdeprecate.h"
/**
* Safer alternative to time_t.
@ -47,7 +48,7 @@ namespace rstime {
/*!
* \brief This is a cross-system definition of usleep, which accepts any 32 bits number of micro-seconds.
*/
RS_DEPRECATED_FOR("std::this_thread::sleep_for")
int rs_usleep(uint32_t micro_seconds);
/* Use this class to measure and display time duration of a given environment: