---
title: GetClockAlgorithm
framework: audiodriverkit
role: symbol
role_heading: Instance Method
path: audiodriverkit/iouseraudioclockdevice/getclockalgorithm
---

# GetClockAlgorithm

Gets the clock algorithm of the clock device.

## Declaration

```occ
IOUserAudioClockAlgorithm GetClockAlgorithm();
```

## Return Value

Return Value The clock algorithm of the clock device.

## Discussion

Discussion This method synchronizes by using the work queue created by the object.

## See Also

### Working with Clock Device Behavior

- [SetClockAlgorithm](audiodriverkit/iouseraudioclockdevice/setclockalgorithm.md)
- [IOUserAudioClockAlgorithm](audiodriverkit/audiodriverkit/iouseraudioclockalgorithm.md)
- [SetClockIsStable](audiodriverkit/iouseraudioclockdevice/setclockisstable.md)
- [GetClockIsStable](audiodriverkit/iouseraudioclockdevice/getclockisstable.md)
