ok, I know your going to think me stupid here but it simply wont work, 3 days I have been trying and still no further forward.
The example code you sent I replicated but bearing in mind I am wanting it to measure the time in the setup void and not the main loop I had to put the whole code in setup void whereas the example has some in setup and some in loop.