# 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)

*** ** * ** ***


```
public interface Clock
```

<br />

*** ** * ** ***

The interface WorkManager uses to access to the current time.

## Summary

| ### Public methods |
|---|---|
| `abstract long` | `https://developer.android.com/reference/androidx/work/Clock#currentTimeMillis()()` |

## Public methods

### currentTimeMillis

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

```
abstract long currentTimeMillis()
```

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