ADC and Timer relationship in DUE

I use an example from this thread:
http://forum.arduino.cc/index.php?topic=205096.0
and it's working