add modified tparse.c from fasttime package