timelib.h problems

Complete code is attached in one of answer before. Thanks for your time