* The value accumulated in this counter be accounted against the
* current program (as set with metrics_set_current_program).
*
- * Returns: A counter ID suitable for use with glBeginQuery/glEndQuery
+ * Returns: A counter ID suitable for use with metrics_counter_start
+ * and metrics_counter_stop.
*/
unsigned
-metrics_add_counter (void);
+metrics_counter_new (void);
+
+/* Start accumulating GPU time spent into the given counter. */
+void
+metrics_counter_start (unsigned counter);
+
+/* Stop accumulating GPU time (stops the most-recently started counter) */
+void
+metrics_counter_stop (void);
/* Set the ID of the currently executing shader program.
*