tSwitched to usleep (0.5 sec) - game-of-life - Conway's Game of Life | |
git clone git://src.adamsgaard.dk/game-of-life | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit dcd40ee55dbb59b9e734f2a9d22c9bf84ab9ffb1 | |
parent 340a2d4d7fba4f23b3c551aef8d47feb536fd4e6 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Sat, 8 Mar 2014 16:43:38 +0100 | |
Switched to usleep (0.5 sec) | |
Diffstat: | |
M main.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/main.c b/main.c | |
t@@ -67,7 +67,7 @@ int main(int argc, char **argv) | |
print_matrix("neighbors", neighbors, nx, ny); | |
print_cell_matrix("cells", cells, nx, ny); | |
- sleep(1); | |
+ usleep(5e5); | |
it++; | |
} |