main: added clock support.