In my simulation every tick clock value should increment by one, after resolving some of my other performance problems I have noticed this function is on top of the sorted by inclusive time list (the value is 960205 ms):
Calls Incl T(ms) Excl T(ms) Excl/calls
40001 960205.451 3586.591 0.090
to increment-clock
set clock (clock + 1)
if clock = 48
[ set clock 0 ]
end
According to http://ccl.northwestern.edu/netlogo/5.0/docs/profiler.html Inclusive time is the time from when the procedure was entered, until it finishes
I thought this one should be straight forward and easy,
what I am doing wrong here?
I remember I used ticks before to increment the clock , I don't remember why I have changed it to the one I mentioned above, but still this should not take this much time! (the profiler inclusive time value for this one is 599841.851 ms which indicated following is faster than the one above:
to increment-clock
set clock (clock + 1)
if ticks mod 48 = 0 [set clock 0]
end
Calls Incl T(ms) Excl T(ms) Excl/calls
40001 599841.851 2943.394 0.074
Thanks. Marzy