MQLArticles/Utils/Dict/DictT.mq5
2026-05-31 15:28:34 -05:00

33 lines
1.2 KiB
MQL5

//+------------------------------------------------------------------+
//| DictT.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 "DictT.mqh"
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
//---
CDictSValue<int> dict;
dict.Add("valor", 10);
int v;
ulong a = GetMicrosecondCount();
dict.TryGet("valor", v);
ulong b = GetMicrosecondCount() - a;
Print("TIME: ", b);
Print(v);
}
//+------------------------------------------------------------------+