Updated to use tickless low power mode.
support for second-less format, fix for advancing result pointer
fixed wrong waiting condition