hi, i'm working on this project which is basically to implement the various travelling salesman heuristics.

could anyone please tell me how i can time how long a piece of code takes to execute?

i have tried the Timer class but from my understanding, that is for setting alerts and scheduling... i just need a plain timer to start at the top of the code and finish at the end...

any help, would be MUCH APPRECIATED!!