Lines Matching full:duration
108 double duration = 0; in ApplyForMalloc() local
116 duration += static_cast<double>(timerStop - timerStart) / CLOCKS_PER_SEC; in ApplyForMalloc()
118 printf("malloc success, malloc (%d) time is %f\n", mallocSize, duration); in ApplyForMalloc()
123 duration += static_cast<double>(timerStop - timerStart) / CLOCKS_PER_SEC; in ApplyForMalloc()
126 printf("malloc apply success, total time is %f\n", duration); in ApplyForMalloc()
135 double duration = 0; in ApplyForCalloc() local
143 duration += static_cast<double>(timerStop - timerStart) / CLOCKS_PER_SEC; in ApplyForCalloc()
145 printf("calloc success, calloc (%d) time is %f\n", callocSize, duration); in ApplyForCalloc()
150 duration += static_cast<double>(timerStop - timerStart) / CLOCKS_PER_SEC; in ApplyForCalloc()
153 printf("calloc apply success, total time is %f\n", duration); in ApplyForCalloc()
167 double duration = 0; in ApplyForRealloc() local
181 duration += static_cast<double>(timerStop - timerStart) / CLOCKS_PER_SEC; in ApplyForRealloc()
183 printf("realloc success, realloc (%d) time is %f\n", reallocSize, duration); in ApplyForRealloc()
188 duration += static_cast<double>(timerStop - timerStart) / CLOCKS_PER_SEC; in ApplyForRealloc()
191 printf("realloc apply success, total time is %f\n", duration); in ApplyForRealloc()