How can measure an indicator launch time?

 
Hello. I want to check how fast is my code. can I measure an indicator launch time in milliseconds?
 
You can use GetMicroseconds() and save the return value in a ulong, then after your code is done, you call the function again, subtract the first value and get the time in micros.
 
Dominik Egert:
You can use GetMicroseconds() and save the return value in a ulong, then after your code is done, you call the function again, subtract the first value and get the time in micros.

Thank you. you mean GetMicrosecondCount()

Why I don't call it only one time after my code is done?

 
Farzad Sadeghishahrestanak: Why I don't call it only one time after my code is done?

If you get on a highway, drive three miles, and see mile marker 300, does that mean you've driven 300 miles (all the way from marker zero)? Or does it mean you've driven three miles (all the way from exit 297)?

Reason: