- DetectASKClock(grph, size, &clock, 20);
+ //, size_t *ststart, size_t *stend
+ size_t ststart = 0, stend = 0;
+ bool st = DetectST(grph, &size, &clock, &ststart, &stend);
+ int start = stend;
+ if (st == false) {
+ start = DetectASKClock(grph, size, &clock, 20);
+ }
+ setClockGrid(clock, start);