i would use a timer for that.. or capture module... but anyways... In your case, 2mSec should return 200

2msec/10uSec=200 right?