CryptoByLeo/Src/RSPParser/Ben.mq5

42 lines
1.5 KiB
MQL5
Raw Permalink Normal View History

2026-08-25 08:22:06 -05:00
//+------------------------------------------------------------------+
//| Ben.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 "Iteradores.mqh"
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
#resource "SHA3_512ShortMsg.rsp" as const string g_raw
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
//---
TSN::CRSPParser rsp;
//---
rsp.Assing(g_raw);
rsp.CorrectPadding();
//---
ulong a = GetMicrosecondCount();
for(int i = 0; i < 10000; i++)
{
rsp.Parse();
}
ulong b = GetMicrosecondCount();
Print("time: ", (b - a));
}
//+------------------------------------------------------------------+