From 236c03cc333246be44a20569fcd0d1c2c82c4079 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 4 Jul 2014 14:12:49 +0200 Subject: 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. --- tests/util.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/util.h (limited to 'tests/util.h') 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 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 -- cgit v1.2.3