updated timer.c for targ struct