mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-10 10:05:19 -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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue