I've added a couple console logs into the "Callback Property" sandcastle example that output the time parameter to the "length" and "midpoint" callbacks. The midpoint function (the position of the label) gets called 3 times for each length function (the text of the label). That's fine, but the third time that the midpoint function is called there's an extra millisecond.
This is an example (I'm displaying secondsOfDay of the time parameter):
midpoint
68948.55300000048
length
68948.55300000048
midpoint
68948.55300000048
midpoint
68948.55400000048
midpoint
68948.66700000048
length
68948.66700000048
midpoint
68948.66700000048
midpoint
68948.66800000049
This works fine for the sandcastle example, but in my application the callback references a pair of entities with SampledPositionProperty and the extra millisecond pushes the time past the last sample.
I'm using cesium 1.48.
Is there a recommended way of dealing with that extra millisecond?