Profiling Functions What is the Best way?

I am trying to profile which of my functions are taking the most time. This is what I am doing right now but I am wondering is this the best way?


void DoSomething()
{
     datetime Start = Time[0];

     datetime End = Time[0];

     Print(MathAbs(Start-End));
}



Thank you For your Time
EK

Use GetTickCount() instead - "MQL4: GetTickCount"
Thank you Rosh
You're welcome.