Convert 64-bit Hex to nanoseconds timestamps

早过忘川 提交于 2019-12-12 02:52:49

问题


I have timestamps that are represented in 64-bit hex. Is there a way to convert it to nanosecond timestamps? (preferably in c++)


回答1:


Found it!

I used std::hex to convert a hex value to long, which in turn gives me the nanosecond precision.



来源:https://stackoverflow.com/questions/36731370/convert-64-bit-hex-to-nanoseconds-timestamps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!