Hardware timers in Javascript

#1

My goal is to use hardware timers in Javascript,
I programmed a hardware timer in C which worked.
Now im looking if this is possible or not? and how would someone recommend me to do this.

kind regard,
Dave

#2

Did you read about ffi() ?
Since Mongoose-OS supports many architectures, “hardware timers” is a bit vague. If you have a C function working, you can call it from mJS by using ffi(), docs here