Is there an api to get current time micros?

Is there an API to get current time in micros, just like Arduino’s micros()?

Thanks.

It looks like the time is only available in seconds resolution right now. There is a discussion over here about centisecond and better resolution in the future.