summaryrefslogtreecommitdiffstats
path: root/tests/util.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-07-04 14:12:49 +0200
committerPierre Ossman <ossman@cendio.se>2014-07-04 14:12:49 +0200
commit236c03cc333246be44a20569fcd0d1c2c82c4079 (patch)
tree9d37aa207190c71a4a59ffc3a28c84879222b20e /tests/util.h
parentf3c2026d5be5c64655386bb1d1592eb250830ea1 (diff)
downloadtigervnc-236c03cc333246be44a20569fcd0d1c2c82c4079.tar.gz
tigervnc-236c03cc333246be44a20569fcd0d1c2c82c4079.zip
Add pixel conversion speed test
Add a tests directory where we can put tests programs that can be useful during testing. Start with a speed test for the pixel conversion routines.
Diffstat (limited to 'tests/util.h')
-rw-r--r--tests/util.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/util.h b/tests/util.h
new file mode 100644
index 00000000..ebeadeba
--- /dev/null
+++ b/tests/util.h
@@ -0,0 +1,27 @@
+/* Copyright 2013-2014 Pierre Ossman <ossman@cendio.se> for Cendio AB
+ *
+ * This is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this software; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ * USA.
+ */
+
+#ifndef __TESTS_UTIL_H__
+#define __TESTS_UTIL_H__
+
+void startCpuCounter(void);
+void endCpuCounter(void);
+
+double getCpuCounter(void);
+
+#endif