megodinero:
A few notes:
- Time doesn't have to be terribly precise, but at least -or+ 10min of drift over the day.
This comes down to how accurate the NodeMCU oscillator is. It's probably quite a bit better than the resonator in the UNO, but you will still want to look at the spec sheet to be sure. 10 minutes over 24 hours is .6%, so the MCU will need to be more accurate than that.
If it isn't, then you'll need a RTC module of some sort, which will make the sketch quite a bit more complicated.
What, EXACTLY, are you trying to measure?
Simply put; the total times for vibrations that periodically start and stop.
Woah! So, is this button of yours going to vibrate? How fast? Because that changes things. Did you want to measure the total time that the button is down, or did you want to measure the overall time of vibration? That's two different things.