Updating examples to use new rt clock api