A method of sensing distance using a light-emitting unit and a photosensor, said photosensor comprising photoelectric conversion means for converting incident light into a photoelectric current and differential electric quantity generation means for calculating a difference between an electric quantity based on a photoelectric current obtained by said photoelectric conversion means in a first period and an electric quantity based on a photoelectric current obtained by said photoelectric conversion means in a second period, said first period being a period in which the light emitting unit is emitting light, and said second period being a period in which the light emitting unit is not emitting light and wherein the incident light related to the first period is regarded as fixed light and the incident light related to the second period is regarded as reflected light related to light emitted from said light-emitting means, wherein said differential electric quantity generation means comprises, storage means for storing electric quantity based on a photoelectric current in the first period, reproduction means for reproducing, in the second period, the electric quantity stored in said storage means, and generation means for performing addition or subtraction of electric quantity based on a photoelectric current in the second period and the electric quantity reproduced by said reproduction means to generate a difference therebetween as electric quantity, said method comprising:
- emitting light from said light emitting unit;
- detecting light reflecting from an object;
- and
- measuring a time from light emission of said light emitting unit to generation of an electric quantity by said generation means.