pike.git / lib / modules / Tools.pmod / Shoot.pmod / ArrayAdding3.pike

version» Context lines:

pike.git/lib/modules/Tools.pmod/Shoot.pmod/ArrayAdding3.pike:1: + #pike __REAL_VERSION__ + // inherit Tools.Shoot.Test;    -  + constant name="Adding element to array (private global)"; +  + #define ITER 10000 +  + private final array a = ({}); + int perform() + { +  for (int i=0; i<ITER; i++) +  a = a+({random(10)}); +  return ITER; + }   Newline at end of file added.