Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5e9018b authored by Nipun Kwatra's avatar Nipun Kwatra Committed by Android (Google) Code Review
Browse files

Merge "use usleep instead of sleep."

parents 8c9d61c4 7913998c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -149,10 +149,10 @@ void CameraSourceTimeLapse::threadTimeLapseEntry() {
            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);
        }
    }
}