diff --git a/src/ca/catime.c b/src/ca/catime.c index 5e2be439a..b4fbd60f1 100644 --- a/src/ca/catime.c +++ b/src/ca/catime.c @@ -80,6 +80,8 @@ LOCAL tf test_put; LOCAL tf test_wait; LOCAL tf test_get; +LOCAL void measure_get_latency (ti *pItems, unsigned iterations); + void timeIt( tf *pfunc, ti *pItem, @@ -165,6 +167,13 @@ int catime (char *channelName, enum appendNumberFlag appNF) printf ("float test\n"); test (itemList, NELEMENTS(itemList)); + for (i=0; itype, pi->count, + pi->chix, &pi->val); + SEVCHK (status, NULL); + status = ca_pend_io (100.0); + SEVCHK (status, NULL); + + tsLocalTime(&end_time); + + TsDiffAsDouble(&delay,&end_time,&start_time); + + X += delay; + XX += delay*delay; + + if (delay>max) { + max = delay; + } + + if (delay