# dspClockTime is out of sync after event instantiation?

**URL:** https://qa.fmod.com/t/dspclocktime-is-out-of-sync-after-event-instantiation/16523
**Category:** FMOD Engine
**Created:** [December 4, 2020, 10:49pm UTC](https://qa.fmod.com/t/dspclocktime-is-out-of-sync-after-event-instantiation/16523 "2020-12-04T22:49:32Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![pk1234](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@pk1234](https://qa.fmod.com/u/pk1234)
#### Post date: [December 14, 2020, 8:00pm UTC](https://qa.fmod.com/t/dspclocktime-is-out-of-sync-after-event-instantiation/16523/3 "2020-12-14T20:00:13Z")

</div>

Hello, thanks for the reply.

I could use getTimelinePosition but I was under the impression that dspClock is more suitable for precise rhythm related things, and that there could be issues with pausing/unpausing if using the studio api method (and perhaps other issues/possible stutter etc.) - I made this conclusion based off this post:

> [@Off sync on position "getTimelinePosition" when using "setPaused" method.](https://qa.fmod.com/t/off-sync-on-position-gettimelineposition-when-using-setpaused-method/13069/2):
>
> Hi HJ It’s difficult to reason about how the timeline position is going out of sync with the game without understanding what in-sync with the game means. I’m guessing you have some sort of timer in your game which you pause at the same time that you call FMOD.Studio.EventInstance.setPaused? FMOD.Studio.EventInstance.setPaused is an asynchronous operation - calling setPaused posts a command to the FMOD studio update thread and returns immediately, there is then some latency before the command …

I’d be willing to not use the Studio API in this specific script if that helps, though I’d definitely like to use the studio api elsewhere. I have no idea how these things work on a lower level though so it might be a bad idea, but the event is just a song without any effects, so it might not be too problematic?

I’m also willing to just subtract the time in some fashion, but I’d like to reliably know what it is that I should subtract. It’s hacky, but I’m fine with it if it works.

---

_[View the full topic](https://qa.fmod.com/t/dspclocktime-is-out-of-sync-after-event-instantiation/16523)._
