2026-03-26 18:15:47 -05:00 | | | //+------------------------------------------------------------------+
|
2026-09-12 19:41:52 -05:00 | | | //| Misce.mq5 |
|
| | | //| Copyright 2026, Niquel Mendoza. |
|
2026-03-26 18:15:47 -05:00 | | | //| https://www.mql5.com |
|
| | | //+------------------------------------------------------------------+
|
2026-09-12 19:41:52 -05:00 | | | #property copyright "Copyright 2026, Niquel Mendoza."
|
2026-03-26 18:15:47 -05:00 | | | #property link "https://www.mql5.com"
|
| | | #property version "1.00"
|
| | | #property strict
|
| | |
|
| | | //+------------------------------------------------------------------+
|
| | | //| |
|
| | | //+------------------------------------------------------------------+
|
2026-09-12 19:41:52 -05:00 | | | #include "Conv.mqh"
|
2026-03-26 18:15:47 -05:00 | | |
|
| | | //+------------------------------------------------------------------+
|
| | | //| Script program start function |
|
| | | //+------------------------------------------------------------------+
|
| | | void OnStart()
|
| | | {
|
| | | //---
|
2026-09-12 19:41:52 -05:00 | | | double v;
|
| | |
|
| | |
|
| | | ulong a = GetMicrosecondCount();
|
| | | for(int i = 1; i < (1 << 30); i += 1000)
|
| | | {
|
| | | const string str = string(i) + ".1651";
|
| | | int pos = 0;
|
| | | TSN::CStringConvert::ToValue(str, pos, v, StringLen(str));
|
| | | }
|
| | | ulong b = GetMicrosecondCount();
|
| | | Print("@: ", (b - a), " ch: ", v);
|
| | |
|
| | | a = GetMicrosecondCount();
|
| | | for(int i = 1; i < (1 << 30); i += 1000)
|
| | | {
|
| | | const string str = string(i) + ".1651";
|
| | | v = StringToDouble(str);
|
| | | }
|
| | | b = GetMicrosecondCount();
|
| | | Print("native: ", (b - a), " ch: ", v);
|
| | |
|
2026-03-26 18:15:47 -05:00 | | | }
|
| | | //+------------------------------------------------------------------+
|