AnsweredAssumed Answered

Strange behavior of clock()

Question asked by sandyandr on Jun 18, 2013
Latest reply on Jun 20, 2013 by sandyandr

My "main" consists of 3 jobs - OpenCL kernel call, OpenGL render call, OpenCL kernel call. Each part exec-time is calculated by two clock() calls before and after each part. After enabling GLSL shaders for render process some second and third calls became 0.000 sec duration each or one of them without any visible reason. It seems that their real counters just had been added to first part exec-time. But how can it be? OpenXL shows all fine, but I need to know how long my OpenGL part lasts.

Outcomes