/** * Copyright - See the COPYRIGHT that is included with this distribution. * pvxs is distributed subject to a Software License Agreement found * in file LICENSE that is included with this distribution. */ /** * Serves a single integer PV which increments at a pre-defined rate. */ #include #include #include #include #include #include #include #include #include #include #include using namespace pvxs; int main(int argc, char* argv[]) { double delay = 1.0; if(argc<=1) { std::cerr<<"Usage: "< [rateHz]\n"; return 1; } if(argc>=3) { try { size_t idx=0; delay = 1.0/std::stod(argv[2], &idx); if(idx