forked from nique_372/CryptoByLeo
42 lines
1.5 KiB
MQL5
42 lines
1.5 KiB
MQL5
|
|
//+------------------------------------------------------------------+
|
||
|
|
//| 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));
|
||
|
|
}
|
||
|
|
//+------------------------------------------------------------------+
|