Merge "use usleep instead of sleep."
diff --git a/media/libstagefright/CameraSourceTimeLapse.cpp b/media/libstagefright/CameraSourceTimeLapse.cpp
index 23d8f56..1fd256a 100644
--- a/media/libstagefright/CameraSourceTimeLapse.cpp
+++ b/media/libstagefright/CameraSourceTimeLapse.cpp
@@ -149,10 +149,10 @@
             LOGV("threadTimeLapseEntry: taking picture");
             CHECK_EQ(OK, mCamera->takePicture());
             mCameraIdle = false;
-            sleep(mTimeBetweenTimeLapseFrameCaptureUs/1E6);
+            usleep(mTimeBetweenTimeLapseFrameCaptureUs);
         } else {
             LOGV("threadTimeLapseEntry: camera busy with old takePicture. Sleeping a little.");
-            sleep(.01);
+            usleep(1E4);
         }
     }
 }