Benchmark – library MetaTrader 5
The include file “Benchmark.mqh” has a set of macros to benchmark various functions for their execution speeds to decide which is the fastest one. //+——————————————————————+ //| Macro to measure the execution time a function. | //| Prints the elapsed time in microseconds per call (µsec/call). | //| TimeIt(sum += ArrayBsearch(arr, value)); | //+——————————————————————+ #define TimeIt(func_invocation) //+——————————————————————+ //| Macro … Read more