PsychoJS equivalent of the builder's win.getTimeOnFlip()

In PsychoJS, I am looking to do what win.getTimeOnFlip() does in the builder. I would like to save the time of the next flip into a variable which can then be outputted to the data file csv. Is there a way to do this?

Hey @rkempner, apologies for the late reply, not sure this is exactly what you are looking for, but you could use something like win.callOnFlip() to queue up a callback function expected to fire “immediately after the next rendering of the Window”