Continously Updating Time from PC

Hi! I am writing a program that is testing the accuracy of a RTC chip (RTC PFC8523 to be exact) over time. I am using my laptop's time as a benchmark to calculate error over time.

DateTime comp_time;

comp_time = DateTime(F(__DATE__), F(__TIME__));

void loop (){
     comp_time = DateTime(F(__DATE__), F(__TIME__));
     ...
}

I don't exactly know how the code above works, but I know that DATE and TIME returns the date and time from the PC. Theoretically, if I put this line of code in a loop, it should continously be updating comp_time. However, it is not updating and stays equal to whatever value it was when it was first called.

Any suggestions/input?

Thanks

However, it is not updating and stays equal to whatever value it was when it was first called.

DATE and TIME refer to the date and time that the program was compiled, not the current date and time so they will not change.

If you want to read the time from the PC then you must have a program running on the PC sending it to the Arduino and a means of reading it.