generic clock warpper