As far as I know, getting the timestamp for a screen flip is something that would require the third-party Psychtoolbox, but if you know a MATLAB way, then I would be interested in seeing that.
audioplayer has a StartFcn callback that you could use now() or datetime() with to get a timestamp. However, I would be suspicious about the accuracy of that, since functions can take arbitrary time to execute.