Micros64 what is it

I’m using an external RTC in order to use it. ds1302, but I kept looking for the micros64 function, it seems to get the current time, but I kept looking down, I can only find that his return value is 0, so I don’t know the logical relationship between this

image

Those are microseconds since boot in a 64 bit variable.

I understand but I want to look into it and use an external RTC instead of this code, what I don’t understand is why I keep looking for his function and he ends up returning me a 0, which I think is very unreasonable,,,,,Also, I’d like to ask if I could define this function as getting a timestamp from DS3231 instead of an internal RTC if I use DS3231 instead of it

No you can not. It needs to be time since boot, your RTC will not deliver time since boot.

You need to convert your RTC data into a time since boot before you can use it.

The function does not return 0 you are looking in the wrong place.

See here:

https://ardupilot.org/dev/docs/ros-timesync.html

And here:

hello After I successfully connected to the GPS, I found that the event stamp obtained was the London area timestamp, without adding the time zone offset, I manually added the offset to the timestamp obtained from gps, but I found that the time on the MP was correct, but the time zone was obviously added to the time zone offset when the log was generated, in layman’s terms, the time system on the log file automatically added the time zone offset, and the time on the MP was not added, how to deal with this please look my new post

There is an ArduPilot parameter for the time offset relative to UTC. Did you set that one correctly ?