Thank you btbass. So quick!
Yes, I know it was the average of the 10 samples in .1sec period approximately. But he should not averaging it unless the buffer gets full (buf[0...9] filled up). Right?
And he will not displaying it until averaging is complete.
Although, 10ms is fast enough for human to noticed. The logic is somewhat confusing.