How does S40 measure distance of approach shot that lands on green?

Given the S40 can't recognise putts, how does it register how far the last approach shot that hit the green was?