RasPiArduino icon indicating copy to clipboard operation
RasPiArduino copied to clipboard

(minor issue)

Open thijses opened this issue 4 years ago • 0 comments
trafficstars

#define STCV ((uint64_t)(STCLO | ((uint64_t)STCHI << 32)))

#define micros() (unsigned long)(STCV) #define millis() (unsigned long)(STCV / 1000)

why bother converting to 64 bit, only to then convert back to 32 bit? how about:

#define micros() STCLO #define millis() (STCLO / 1000L)

thijses avatar Dec 11 '20 13:12 thijses