---
title: SetInputLatency
framework: VideoDriverKit
role: symbol
role_heading: Instance Method
platforms: [driverkit 27.0+]
path: videodriverkit/iouservideoclockdevice/setinputlatency
---

# SetInputLatency

Sets the input latency of the clock device.

## Declaration

```occ
kern_return_t SetInputLatency(uint32_t in_latency);
```

## Parameters

- `in_latency`: The uint32_t input latency value to set.

## Return Value

Return Value A kern_return_t value indicating success or failure.

## Discussion

Discussion Drivers can change the latency of the clock device dynamically. If successful, the clock device sends a notification to the host to update the object state. The object’s work queue synchronizes access to this value when it changes.

## See Also

### Working with timing and latency

- [SetOutputLatency](videodriverkit/iouservideoclockdevice/setoutputlatency.md)
- [GetOutputLatency](videodriverkit/iouservideoclockdevice/getoutputlatency.md)
- [GetInputLatency](videodriverkit/iouservideoclockdevice/getinputlatency.md)
