I am using the "time" function, But it always returns as -1.
static time_t (*timePtr)(time_t *t) = time;
I am running the setup in debug mode. Please support what can be the issue.
this was already discussed here, for example:
The best way is to do own implementation based on internal timers or you can use external real time clock circuit.