getCurrentMonotonicTimeInMs abstract method
Gets the SDK's current monotonic time.
Monotonic time refers to a monotonically increasing time sequence, whose value increases over time. The unit is milliseconds. In custom video capture and custom audio capture scenarios, to ensure audio-video synchronization, Agora recommends that you call this method to get the SDK's current monotonic time and then pass the value into the timestamp parameter of the captured VideoFrame or AudioFrame.
Returns ≥ 0: The method call succeeds and returns the SDK's current monotonic time (milliseconds). < 0: The method call fails. See Error Codes for details and resolution suggestions.
Implementation
Future<int> getCurrentMonotonicTimeInMs();