When a device including a wristwatch is provided with a gait detection function, the size may be increased and the configuration may become complex because the foregoing systems require that a pendulum, an acceleration sensor, a gyro sensor, and the like be added to the device.