123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- /*******************************************************************************
- License:
- This software and/or related materials was developed at the National Institute
- of Standards and Technology (NIST) by employees of the Federal Government
- in the course of their official duties. Pursuant to title 17 Section 105
- of the United States Code, this software is not subject to copyright
- protection and is in the public domain.
- This software and/or related materials have been determined to be not subject
- to the EAR (see Part 734.3 of the EAR for exact details) because it is
- a publicly available technology and software, and is freely distributed
- to any interested party with no licensing requirements. Therefore, it is
- permissible to distribute this software as a free download from the internet.
- Disclaimer:
- This software and/or related materials was developed to promote biometric
- standards and biometric technology testing for the Federal Government
- in accordance with the USA PATRIOT Act and the Enhanced Border Security
- and Visa Entry Reform Act. Specific hardware and software products identified
- in this software were used in order to perform the software development.
- In no case does such identification imply recommendation or endorsement
- by the National Institute of Standards and Technology, nor does it imply that
- the products and equipment identified are necessarily the best available
- for the purpose.
- This software and/or related materials are provided "AS-IS" without warranty
- of any kind including NO WARRANTY OF PERFORMANCE, MERCHANTABILITY,
- NO WARRANTY OF NON-INFRINGEMENT OF ANY 3RD PARTY INTELLECTUAL PROPERTY
- or FITNESS FOR A PARTICULAR PURPOSE or for any purpose whatsoever, for the
- licensed product, however used. In no event shall NIST be liable for any
- damages and/or costs, including but not limited to incidental or consequential
- damages of any kind, including economic damage or injury to property and lost
- profits, regardless of whether NIST shall be advised, have reason to know,
- or in fact shall know of the possibility.
- By using this software, you agree to bear all risk relating to quality,
- use and performance of the software and/or related materials. You agree
- to hold the Government harmless from any claim arising from your use
- of the software.
- *******************************************************************************/
- #ifndef _MYTIME_H
- #define _MYTIME_H
- /* this file needed to support timer and ticks */
- /* UPDATED: 03/16/2005 by MDG */
- #ifdef TIMER
- #include <sys/types.h>
- #endif
- #ifdef __MSYS__
- #include <sys/time.h>
- #else
- #include <sys/times.h>
- #endif
- #ifdef TIMER
- #define set_timer(_timer_); \
- { \
- _timer_ = ticks();
- #else
- #define set_timer(_timer_);
- #endif
- #ifdef TIMER
- #define time_accum(_timer_, _var_); \
- _var_ += (ticks() - _timer_)/(float)ticksPerSec(); \
- }
- #else
- #define time_accum(_timer_, _var_);
- #endif
- #ifdef TIMER
- #define print_time(_fp_, _fmt_, _var_); \
- fprintf(_fp_, _fmt_, _var_);
- #else
- #define print_time(_fp_, _fmt_, _var_);
- #endif
- extern clock_t ticks(void);
- extern int ticksPerSec(void);
- extern clock_t total_timer;
- extern float total_time;
- extern clock_t imap_timer;
- extern float imap_time;
- extern clock_t bin_timer;
- extern float bin_time;
- extern clock_t minutia_timer;
- extern float minutia_time;
- extern clock_t rm_minutia_timer;
- extern float rm_minutia_time;
- extern clock_t ridge_count_timer;
- extern float ridge_count_time;
- #endif
|