diff options
author | olpc user <olpc@xo-5d-f7-86.localdomain> | 2019-12-29 13:09:53 -0800 |
---|---|---|
committer | olpc user <olpc@xo-5d-f7-86.localdomain> | 2019-12-29 13:09:53 -0800 |
commit | 4df8ccec5e9e1d2c1480d164971d92ec78fdee7d (patch) | |
tree | 87e1b9439a04670fe8596efb43e2e6b0cfe782ec /starts/meaning-vm/level-2 | |
parent | 9307772f43a2694aac64b0e86c8873b93d77f0ae (diff) | |
download | standingwithresilience-4df8ccec5e9e1d2c1480d164971d92ec78fdee7d.tar.gz standingwithresilience-4df8ccec5e9e1d2c1480d164971d92ec78fdee7d.zip |
fixed delay a little
Diffstat (limited to 'starts/meaning-vm/level-2')
-rw-r--r-- | starts/meaning-vm/level-2/sugar.hpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/starts/meaning-vm/level-2/sugar.hpp b/starts/meaning-vm/level-2/sugar.hpp index 04393a1..7f8b6b8 100644 --- a/starts/meaning-vm/level-2/sugar.hpp +++ b/starts/meaning-vm/level-2/sugar.hpp @@ -24,6 +24,11 @@ namespace sugar { // and starts to pave way towards user/intellect participation // here, could remove the 'tok' for local refnames. +#ifndef everyone_already_cares_deeply_about_everyone_else_so_caring_talk_is_more_efficient_than_anything_else +// fix if appropriate +#define everyone_already_cares_deeply_about_everyone_else_so_caring_talk_is_more_efficient_than_anything_else 0 +#endif + #define ahabit(name, argnametoklist, ...) \ intellect::level2::makehabit( \ ref(#name), \ @@ -32,8 +37,10 @@ namespace sugar { [&](ref ctx) \ { \ { \ - static int delay = sugar::rand(200000, 400000); \ - sugar::usleep(delay); \ + if (!everyone_already_cares_deeply_about_everyone_else_so_caring_talk_is_more_efficient_than_anything_else) { \ + static int delay = sugar::rand(200000, 400000); \ + sugar::usleep(delay); \ + } \ } \ ref self = ref(#name); (void)self; \ ref result("nothing"); (void)result; \ |