Lines Matching refs:ID
99 static int ID = -1; \
106 ID = k; \
110 if (ID == -1) { \
111 ID = silk_Timer_nTimers; \
113 silk_Timer_depth[ID] = silk_Timer_depth_ctr; \
114 strcpy(silk_Timer_tags[ID], #TAG_NAME); \
115 silk_Timer_cnt[ID] = 0; \
116 silk_Timer_sum[ID] = 0; \
117 silk_Timer_min[ID] = 0xFFFFFFFF; \
118 silk_Timer_max[ID] = 0; \
122 QueryPerformanceCounter(&silk_Timer_start[ID]); \
127 static int ID = -1; \
134 ID = k; \
138 if (ID == -1) { \
139 ID = silk_Timer_nTimers; \
141 silk_Timer_depth[ID] = silk_Timer_depth_ctr; \
142 strcpy(silk_Timer_tags[ID], #TAG_NAME); \
143 silk_Timer_cnt[ID] = 0; \
144 silk_Timer_sum[ID] = 0; \
145 silk_Timer_min[ID] = 0xFFFFFFFF; \
146 silk_Timer_max[ID] = 0; \
150 silk_Timer_start[ID] = GetHighResolutionTime(); \
158 static int ID = 0; \
165 ID = k; \
171 lpPerformanceCount.QuadPart -= silk_Timer_start[ID].QuadPart; \
174 silk_Timer_cnt[ID]++; \
175 silk_Timer_sum[ID] += lpPerformanceCount.QuadPart; \
176 if( lpPerformanceCount.QuadPart > silk_Timer_max[ID] ) \
177 silk_Timer_max[ID] = lpPerformanceCount.QuadPart; \
178 if( lpPerformanceCount.QuadPart < silk_Timer_min[ID] ) \
179 silk_Timer_min[ID] = lpPerformanceCount.QuadPart; \
187 static int ID = 0; \
194 ID = k; \
200 endTime -= silk_Timer_start[ID]; \
203 silk_Timer_cnt[ID]++; \
204 silk_Timer_sum[ID] += endTime; \
205 if( endTime > silk_Timer_max[ID] ) \
206 silk_Timer_max[ID] = endTime; \
207 if( endTime < silk_Timer_min[ID] ) \
208 silk_Timer_min[ID] = endTime; \