ds: refactore: add clock and timer