player2_dz

Untitled

Nov 9th, 2014
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. P2DZ_decryptFunction = {
  2. private["_in","_id","_o","_t"];
  3. _t = diag_tickTime;
  4.  
  5. _id = 0;
  6.  
  7. _in = _this;
  8.  
  9. _in = [_in,"c",","] call KRON_Replace;
  10.  
  11. _in = call compile ("[" + _in + "]");
  12.  
  13. {
  14. _in set [_id, ((_x - (count _in))) - 10];
  15. _id = _id + 1;
  16. } count _in;
  17.  
  18. _o = toString(_in);
  19.  
  20. _t = diag_tickTime - _t;
  21. _b = count (toArray _this);
  22. _t = _t * 60;
  23. _bs = (_b / _t);
  24. _kbs = _bs / 1024;
  25. [_o,_bs]
  26. };
  27.  
  28. _numArr = [];
  29. _numToDo = 1000;
  30. for "_i" from 1 to _numToDo do {
  31. private["_result"];
  32. _result = "112c114c123c137c156c143c151c137c95c124c152c142c137c93c90c90c129c147c152c137c130c119c92c90c91c90c137c120c126c137c125c110" call P2DZ_decryptFunction;
  33. _numArr = _numArr + [_result select 1];
  34. };
  35.  
  36. diag_log(_result select 0);
  37. diag_log(str _numArr);
  38.  
  39. _avgNum = 0;
  40. {
  41. _avgNum = _x + _avgNum;
  42. } forEach _numArr;
  43.  
  44. _avgNum = _avgNum / count _numArr;
  45. _devNumArr = [];
  46. _devNum = 0;
  47. {
  48. _devNum = _x - _avgNum;
  49. _devNum = _devNum * _devNum;
  50. _devNumArr = _devNumArr + [_devNum];
  51. } forEach _numArr;
  52.  
  53.  
  54. _deviationA = 0;
  55. {
  56. _deviationA = _x + _deviationA;
  57. } forEach _devNumArr;
  58.  
  59. _deviation = (_deviationA / count _numArr );
  60. _deviation = sqrt _deviation;
  61.  
  62. diag_log("Amount of Times: " + str (count _numArr));
  63. diag_log("Average BytesPerSecond: " + str _avgNum + " Deviation: " + str _deviation);
Advertisement
Add Comment
Please, Sign In to add comment