1*a9fa9459Szrj /* Copyright (C) 2012-2016 Free Software Foundation, Inc. 2*a9fa9459Szrj 3*a9fa9459Szrj This file is part of GNU Binutils. 4*a9fa9459Szrj 5*a9fa9459Szrj This program is free software; you can redistribute it and/or modify 6*a9fa9459Szrj it under the terms of the GNU General Public License as published by 7*a9fa9459Szrj the Free Software Foundation; either version 3 of the License, or 8*a9fa9459Szrj (at your option) any later version. 9*a9fa9459Szrj 10*a9fa9459Szrj This program is distributed in the hope that it will be useful, 11*a9fa9459Szrj but WITHOUT ANY WARRANTY; without even the implied warranty of 12*a9fa9459Szrj MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13*a9fa9459Szrj GNU General Public License for more details. 14*a9fa9459Szrj 15*a9fa9459Szrj You should have received a copy of the GNU General Public License 16*a9fa9459Szrj along with this program; if not, write to the Free Software 17*a9fa9459Szrj Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, 18*a9fa9459Szrj MA 02110-1301, USA. */ 19*a9fa9459Szrj 20*a9fa9459Szrj #ifndef hertz_h 21*a9fa9459Szrj #define hertz_h 22*a9fa9459Szrj 23*a9fa9459Szrj #define HZ_WRONG 0 /* impossible clock frequency */ 24*a9fa9459Szrj 25*a9fa9459Szrj /* 26*a9fa9459Szrj * Discover the tick frequency of the machine if something goes wrong, 27*a9fa9459Szrj * we return HZ_WRONG, an impossible sampling frequency. 28*a9fa9459Szrj */ 29*a9fa9459Szrj 30*a9fa9459Szrj extern int hertz (void); 31*a9fa9459Szrj 32*a9fa9459Szrj #endif /* hertz_h */ 33