Thx jraskell, it is working on my 168.
A little output never hurt :). I'm sure there are plenty of applications for lower resolution and faster analog.
100 readings took 11304
440, 440, 441, 441, 441, 442, 443, 443, 444, 444, 445, 445, 446, 446, 447, 448, 449, 449, 450, 451,
452, 453, 454, 454, 455, 456, 457, 458, 459, 460, 461, 462, 462, 463, 464, 464, 465, 466, 466, 467,
468, 469, 469, 470, 471, 472, 473, 473, 474, 474, 475, 475, 476, 477, 477, 478, 478, 478, 479, 479,
479, 479, 479, 479, 479, 479, 479, 478, 478, 478, 478, 477, 477, 477, 477, 476, 475, 475, 474, 473,
472, 471, 471, 470, 469, 468, 467, 466, 465, 464, 463, 462, 461, 460, 459, 458, 457, 456, 455, 454,
100 readings took 1716
463, 463, 463, 463, 463, 463, 463, 463, 463, 463, 463, 463, 462, 462, 462, 462, 462, 462, 463, 463,
463, 463, 462, 462, 462, 462, 462, 462, 462, 462, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, 460,
460, 459, 459, 459, 459, 459, 458, 457, 457, 457, 457, 457, 456, 457, 457, 457, 457, 457, 456, 455,
455, 455, 455, 455, 455, 455, 455, 455, 455, 455, 454, 454, 453, 452, 452, 452, 452, 451, 451, 451,
Ratio of read times is : 6.59
********************