int ts50
final

for better performance, use a low accuracy timer, ts50 is the floor of ts/50