Yes, from my understanding it will be very much possible. You get an event every time the acceleration sensor reads data (if I understand correctly you can change that timing with setPollInterval), and thus you can "just" check the data with the last reading, if its a big enough acceleration, store the read data (+first time stamp if you want to avoid math) until the acceleration slows down, then do the sum math and display the result.
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.
Yes, from my understanding it will be very much possible. You get an event every time the acceleration sensor reads data (if I understand correctly you can change that timing with setPollInterval), and thus you can "just" check the data with the last reading, if its a big enough acceleration, store the read data (+first time stamp if you want to avoid math) until the acceleration slows down, then do the sum math and display the result.