2 Replies Latest reply on Jun 20, 2013 3:48 AM by sandyandr

    Strange behavior of clock()


      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.