diff options
author | SemperVinco <w.deweijer@hotmail.com> | 2017-03-02 22:09:17 +0100 |
---|---|---|
committer | SemperVinco <w.deweijer@hotmail.com> | 2017-03-02 22:09:39 +0100 |
commit | ae7276c1c03405bace315984c6ed6e84571ec887 (patch) | |
tree | 4ac8dc9fcd07d1c0f17c1e1b2f28b8a8d795a8ab /main.cpp | |
parent | 73f477e76de1ffee1f39ddac9b0a5dadd350647d (diff) |
tick counter
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -265,7 +265,7 @@ int main(int argc,char **argv){ } } - sb=new ScreenBuffer(SIZE*3,SIZE); + sb=new ScreenBuffer(SIZE*3, SIZE+1); #ifndef _WIN32 signal(SIGINT,signalHandler); #endif @@ -274,6 +274,7 @@ int main(int argc,char **argv){ usleep(3000); world.tick(); world.print(*sb); + sb->mvprintf(0, SIZE, "step: %5i", i); sb->draw(); } delete sb; |