statwatch.c equivalent to top command