timer in C beaver