Is it possible reduce the processing time below 1us?
If not possible, it's because:
- Because it's running on Arduino IDE?
or
- Because it's the total process time from: read number of microseconds - write to t1 array- read j from memory - increment j - writing j to memory - read number of microseconds - write to t2 array?
or ....?
I would imagine it's also the unwanted time serial printing as well?.
But 4uS times for operations in C look pretty reasonable, I also seem to recall that the uS timings aren't particularly accurate anyway?.
I 'think' the Arduino usually runs at 16Mhz?, but I've no idea how long each machine code instruction takes, but regardless you won't get many in only 4uS.