Created
February 15, 2014 02:18
-
-
Save SethTisue/9013595 to your computer and use it in GitHub Desktop.
SleepAdd in NetLogo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
to-report add [a b] | |
reset-timer | |
wait a | |
wait b | |
report timer | |
end | |
observer> show add 2 2 | |
observer: 4 | |
observer> show add 2 2 | |
observer: 4 | |
observer> show add 2 2 | |
observer: 4 | |
seems pretty reliable, I was expecting a 4.001 in there :-) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment