There is not enough information. If your chip (uC) has a crystal then it "might" be accurate enough to keep it's own time, assuming none loss of power. If connected to internet then an NTP server could be the answer. I have a clock with a Wemos board that connects to my WiFi and fetches the time via NTP - it's never wrong.
I normally use one of the (very cheap) RTC modules that include a CR2032 battery for backup and never had a problem assuming you have I²C available.
Mike.
Edit, and the ability to set the time.