diff options
Diffstat (limited to 'starts/meaning-vm/habit-starts')
-rw-r--r-- | starts/meaning-vm/habit-starts/common.hpp | 10 | ||||
-rw-r--r-- | starts/meaning-vm/habit-starts/rhythm.cpp | 5 |
2 files changed, 12 insertions, 3 deletions
diff --git a/starts/meaning-vm/habit-starts/common.hpp b/starts/meaning-vm/habit-starts/common.hpp new file mode 100644 index 0000000..963bbea --- /dev/null +++ b/starts/meaning-vm/habit-starts/common.hpp @@ -0,0 +1,10 @@ +#pragma once + +#include "../level-1/level-1.hpp" +#include "../level-2/level-2.hpp" + +namespace habitstarts { + +decl(habit); + +} diff --git a/starts/meaning-vm/habit-starts/rhythm.cpp b/starts/meaning-vm/habit-starts/rhythm.cpp index d5b2161..33e102a 100644 --- a/starts/meaning-vm/habit-starts/rhythm.cpp +++ b/starts/meaning-vm/habit-starts/rhythm.cpp @@ -8,14 +8,13 @@ #include <iostream> -using namespace intellect::level1; +using namespace intellect::level2; int main() { - srand(time(0)); - int micros = 400000 + double(rand()) / RAND_MAX * 400000; // do something, wait a constant (secret) time, and do it again. + int micros = 400000 + double(rand()) / RAND_MAX * 400000; // the time things take is usually not known in advance, especially // for events one is still learning about. |