declare getticks to be C99