Implementation of ScanTime for Arduino using micro() and also using time.h for other architectures