Monotonic Clock since boot

Hi all,

I am working on a golang code dedicated to perform measurements between different sensors. Each sensor has its own code and I want to be able to have a common datation on board. All sensors are managed by a Raspberry Pi. So I need to have a very precise clock that has a common origin for the different codes. I used to develop these codes in C++ using the steady_clock (link) which is a monotonic and precise clock (µsec) that counting from the system boot. I am now developing in Golang and I am looking to an equivalent method. Do you have an idea on how I can do it?

Thanks in advance!!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.