Android 12 Developer Preview is here! Try it out, and give us your feedback!

SystemTimeProvider

interface SystemTimeProvider
androidx.wear.watchface.WatchFace.SystemTimeProvider

Interface for getting the current system time.

Summary

Public methods
abstract Long

Returns the current system time in milliseconds.

Public methods

getSystemTimeMillis

abstract fun getSystemTimeMillis(): Long

Returns the current system time in milliseconds.