New hwclock module, ported from Thus.