Summary:
This is a hard requirement due to an upcoming change in Folly.
The codemod was only run on files that referenced the `std::chrono` namespace with an unqualified `chrono` and also used both the `std` and `folly` namespaces.
```
fbgr -sl "[^:]chrono::" | xargs grep -l "using namespace std;" | xargs grep -l "using namespace folly;" | xargs sed -r -i 's/([^:])chrono::([a-z])/\1std::chrono::\2/g'
```
Reviewed By: yfeldblum
Differential Revision:
D6547864
fbshipit-source-id:
4a8230d311edbaa173722a09b2773e8d053fae7e
runInThreadsAndWait(nproducers,
[&](size_t /* k */) {
for (size_t i = 0; i < writes / nproducers; ++i) {
- this_thread::sleep_for(chrono::milliseconds(1));
+ this_thread::sleep_for(
+ std::chrono::milliseconds(1));
efd_write(1);
}
});
runInThreadsAndWait(nproducers,
[&](size_t /* k */) {
for (size_t i = 0; i < writes / nproducers; ++i) {
- this_thread::sleep_for(chrono::milliseconds(1));
+ this_thread::sleep_for(
+ std::chrono::milliseconds(1));
queue.blockingWrite(nullptr);
efd_write(1);
--writesRemaining;