I added similar code in AnimationCollection.  How about factoring out a function in Core to use from both places, and from other places in Cesium where we use Date.now?