Code Timer for monitoring analog inputs, without using delay();

Hi Everyone,
I came across this code timer for arduino by Simon Monk and was wondering if there is any equivalent for Core / photons? The capability I’m looking for is almost exactly as described in his explanations, 3rd example - where an LED is oscillated at 100 ms and an analog input is monitored every 1000 ms. In simple terms I’d like to use the analog read for a conditional trigger to a webhook I have working for ubidots.

If no such library exists for the core/photon - is there any way to import this library into the build IDE?