Shrink MicroSpinLock.h transitive includes and inline methods
[folly.git] / folly / detail / Sleeper.h
index f5a12b85da9ac6c6e4acd927fdbd7bd9e6109ac9..2d1f24874b27ef33e1fd6171226a48b8e8dfba15 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * @author Jordan DeLong <delong.j@fb.com>
  */
 
-#include <cinttypes>
-#include <ctime>
+#include <cstdint>
 
 #include <folly/portability/Asm.h>
+#include <folly/portability/Time.h>
 
 namespace folly {
 
@@ -41,7 +41,7 @@ namespace detail {
 
     uint32_t spinCount;
 
-  public:
+   public:
     Sleeper() : spinCount(0) {}
 
     void wait() {