On this page:
gl  Query  Counter
7.1

15 glQ...

procedure

(glQueryCounter id target)  Void

  id : Natural
  target : Integer
Version 1.2.

See the glQueryCounter manpage.