---
title: "ctx.time"
description: "The global clock in seconds."
group: "define"
groupTitle: "Defining a shader"
categoryId: "invoke"
categorySlug: "invoke"
categoryTitle: "Context & invocation"
kind: "constant"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/invoke.ts#L52"
---

# ctx.time

The global clock in seconds.

```ts
ctx.time: CtxToken
```

Import `ctx` from `shaders/std` and use `ctx.time`.

Never pauses; for the layer's own speed-scaled clock declare `animatedTime`.