I actually implemented something like that already for this webpage. All measurements are now saved in local storage and you can compare any two of them to get clock drift in PPM.
It's somewhat inaccurate so I'd recommend taking 3-4 measurements in a row to see that they are consistent and removing all except one which seems like best measurement. Then wait at least few hours before repeating that.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I actually implemented something like that already for this webpage. All measurements are now saved in local storage and you can compare any two of them to get clock drift in PPM.
It's somewhat inaccurate so I'd recommend taking 3-4 measurements in a row to see that they are consistent and removing all except one which seems like best measurement. Then wait at least few hours before repeating that.