mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-04-01 19:45:52 -04:00
Deprecate rs_usleep as it is not useful anymore
C++11 standard library offer better functions
This commit is contained in:
parent
d7ecc2686f
commit
7a2c81d06b
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user