#ifndef AMPEL_TIME_H_INCLUDED #define AMPEL_TIME_H_INCLUDED namespace ntp { void initialize(); void update(); void getLocalTime(char *timestamp); } //NOTE: Only use seconds() for duration comparison, not timestamps comparison. Otherwise, problems happen when millis roll over. #define seconds() (millis() / 1000UL) #endif