@Gordon, It runs as is on 1v80.280 so far. I will try the new build today.
I used a timing approach fairly basic as below:
// chronometer functionnalities var Chrono = function (heure) { this.reset(); this.createdAt = heure; }; Chrono.prototype.reset = function () { this.meanTime=0; this.nlines=0; this.duration=0; }; Chrono.prototype.start = function () { this.starttime= getTime(); }; Chrono.prototype.leap = function () { this.nlines++; }; Chrono.prototype.stop= function () { this.duration+=getTime()-this.starttime; this.meanTime=this.duration/this.nlines; }; Chrono.prototype.toString= function(radix) { }; var mychrono = new Chrono(getTime());
mychrono is then called at proper places in the gps loop.
@asez73 started
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.
@Gordon, It runs as is on 1v80.280 so far. I will try the new build today.
I used a timing approach fairly basic as below:
mychrono is then called at proper places in the gps loop.