tSwitched to usleep (0.5 sec) - game-of-life - Conway's Game of Life
(HTM) git clone git://src.adamsgaard.dk/game-of-life
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit dcd40ee55dbb59b9e734f2a9d22c9bf84ab9ffb1
(DIR) parent 340a2d4d7fba4f23b3c551aef8d47feb536fd4e6
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
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(-)
---
(DIR) 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++;
}