# Clock

# Clock

Artifact:[androidx.work:work-runtime](https://developer.android.com/jetpack/androidx/releases/work)  
[View Source](https://cs.android.com/search?q=file:androidx/work/Clock.java+class:androidx.work.Clock)  
Added in[2.9.0](https://developer.android.com/jetpack/androidx/releases/work#2.9.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/work/Clock "View this page in Java")

<br />

```
interface Clock
```

<br />

*** ** * ** ***

The interface WorkManager uses to access to the current time.

## Summary

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | [currentTimeMillis](https://developer.android.com/reference/kotlin/androidx/work/Clock#currentTimeMillis())`()` |

## Public functions

### currentTimeMillis

Added in[2.9.0](https://developer.android.com/jetpack/androidx/releases/work#2.9.0)  

```
fun currentTimeMillis(): Long
```  

|                                                See also                                                |
|--------------------------------------------------------------------------------------------------------|---|
| [currentTimeMillis](https://developer.android.com/reference/java/lang/System.html#currentTimeMillis()) |   |