how to add track to timeline in cesium.viewer


What is a simple way to add track to the timeline? Cesium.Viewer has the option to turn on timeline, but by default the timeline does not have any track on it.


Posting answer to my own question for any beginner like me.