2026-08-17 17:30:57 -05:00
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
//| Test.mq5 |
|
|
|
|
|
//| Copyright 2026, Niquel Mendoza |
|
|
|
|
|
//| https://www.mql5.com |
|
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
#property copyright "Copyright 2026, Niquel Mendoza"
|
|
|
|
|
#property link "https://www.mql5.com"
|
|
|
|
|
#property version "1.00"
|
|
|
|
|
#property strict
|
|
|
|
|
|
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
//| |
|
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
#include "..\\Src\\Base\\Main.mqh"
|
|
|
|
|
|
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
//| Script program start function |
|
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
void OnStart()
|
|
|
|
|
{
|
|
|
|
|
//---
|
2026-08-22 10:02:23 -05:00
|
|
|
MathSrand(20);
|
2026-08-17 18:30:06 -05:00
|
|
|
ulong init[];
|
2026-08-22 10:02:23 -05:00
|
|
|
ArrayResize(init, 20);
|
|
|
|
|
for(int i = 0; i < 20; i++)
|
|
|
|
|
{
|
|
|
|
|
init[i] = ulong(MathRand()) | ulong(MathRand()) << 16 | ulong(MathRand()) << 32;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TSN::BigUInteger a(init, 20);
|
2026-08-25 19:48:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
ulong _a = GetMicrosecondCount();
|
|
|
|
|
for(int i = 0; i < 100000; i++)
|
|
|
|
|
{
|
|
|
|
|
a.Gdc(50);
|
|
|
|
|
}
|
|
|
|
|
ulong _b = GetMicrosecondCount();
|
|
|
|
|
Print("time: ", (_b - _a));
|
|
|
|
|
|
2026-08-17 17:30:57 -05:00
|
|
|
}
|
|
|
|
|
//+------------------------------------------------------------------+
|