Ryan-Git commented on issue #2409: URL: https://github.com/apache/brpc/issues/2409#issuecomment-1993252450
intel cpu 的话,linux 启动的时候会做跨 cpu 校准的。 频率直接用 cpu 的确实可能略有差距,手边的机器大概是 2200.000 vs 2194.843 可以参考 [dpdk](https://github.com/DPDK/dpdk/blob/a86f381b826660e88794754c41d3aec79ce9b87c/lib/eal/x86/rte_cycles.c#L107) 的做法读 cpuid。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org