cuda.c: refactor get_tb() so that the time can be passed in