adding some time code to main.c