Functional clock developed in OpenGL