fixed off by one errors

negative starttime for time.c?