Keeping Track of Time on Energy Harvesting Systems