improve portability by removing rdtsc calls

https://github.com/vysheng/tg/issues/8