Binary arithmetics based clock