adding doc for the default clock time provision

This commit is contained in:
Adam Brown 2021-11-25 10:03:09 +00:00
parent 5d1812008d
commit fdfac8d20a

View File

@ -23,6 +23,13 @@ interface Clock {
}
class DefaultClock @Inject constructor() : Clock {
/**
* Provides a UTC epoch in milliseconds
*
* This value is not guaranteed to be correct with reality
* as a User can override the system time and date to any values.
*/
override fun epochMillis(): Long {
return System.currentTimeMillis()
}