Abstract: Disclosed are a device and method for measuring distance by time of flight. The device includes a light-emitting module (110), a processing module (120) and a light receiving module (130), wherein the light-emitting module (110) comprises at least two emitting regions, and the light receiving module (130) comprises at least two receiving regions corresponding to the light-emitting module (110); the processing module (120) can generate a first instruction for electrical connection to all emitting units so that same output emitted light at the same time, all receiving units of the light receiving module (130) are in one-to-one correspondence with the emitting units; and the processing module (120) carries out calculation, according to data from the light receiving module (130), to obtain detected target distance data.