Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- P2DZ_decryptFunction = {
- private["_in","_id","_o","_t"];
- _t = diag_tickTime;
- _id = 0;
- _in = _this;
- _in = [_in,"c",","] call KRON_Replace;
- _in = call compile ("[" + _in + "]");
- {
- _in set [_id, ((_x - (count _in))) - 10];
- _id = _id + 1;
- } count _in;
- _o = toString(_in);
- _t = diag_tickTime - _t;
- _b = count (toArray _this);
- _t = _t * 60;
- _bs = (_b / _t);
- _kbs = _bs / 1024;
- [_o,_bs]
- };
- _numArr = [];
- _numToDo = 1000;
- for "_i" from 1 to _numToDo do {
- private["_result"];
- _result = "112c114c123c137c156c143c151c137c95c124c152c142c137c93c90c90c129c147c152c137c130c119c92c90c91c90c137c120c126c137c125c110" call P2DZ_decryptFunction;
- _numArr = _numArr + [_result select 1];
- };
- diag_log(_result select 0);
- diag_log(str _numArr);
- _avgNum = 0;
- {
- _avgNum = _x + _avgNum;
- } forEach _numArr;
- _avgNum = _avgNum / count _numArr;
- _devNumArr = [];
- _devNum = 0;
- {
- _devNum = _x - _avgNum;
- _devNum = _devNum * _devNum;
- _devNumArr = _devNumArr + [_devNum];
- } forEach _numArr;
- _deviationA = 0;
- {
- _deviationA = _x + _deviationA;
- } forEach _devNumArr;
- _deviation = (_deviationA / count _numArr );
- _deviation = sqrt _deviation;
- diag_log("Amount of Times: " + str (count _numArr));
- diag_log("Average BytesPerSecond: " + str _avgNum + " Deviation: " + str _deviation);
Advertisement
Add Comment
Please, Sign In to add comment