Abstract
Emerson (1988) provided a simple C-language timing routine for use with PC AT class machines. Unfortunately, this version of the timing routine makes use of nonstandard functions that are not available in all C-language packages. A modified version of this timing routine that does not make use of one of these nonstandard functions is provided. This version of TIMEX runs under the widely available Microsoft C 5.1. The need and availability of the remaining four nonstandard C functions is discussed. Constants needed to convert the timing routine units into seconds and milliseconds are also provided.
Article PDF
Similar content being viewed by others
Avoid common mistakes on your manuscript.
References
Emerson, P. L. (1988). TIMEX A simple IBM AT C language timer with extended resolution.Behavior Research Methods, Instruments, & Computers,20, 566–572.
Kernighan, B. W., &Ritchie, D M(1988).The C programming language (2nd ed.) Englewood Cliffs, NJ: Prentice-Hall
King, R. A. (1983).The IBM PC-DOS handbook. Berkeley, CA: SYBEX.
Lattice, Inc. (1985).Lattice C compiler. Glen Ellyn, IL: Author
Microsoft Corp (1987).Microsoft C 5.1 optimizing compiler: Runtime library reference. Bellevue, WA: Author
Miller, L. H., &Quilici, A E. (1986)Programming in C New York Wiley.
Author information
Authors and Affiliations
Additional information
This work was supported in part by Grant NAG2-492 from NASA’s Ames-Dryden Flight Research Facility. The author would like to thank Bob Wood of the USD Computer Science Department for his helpful comments on this project. I would also like to thank P. L. Emerson for making available what I consider to be one of the most valuable tools available for psychological research on a PC: a working millisecond timer. In addition, my thanks to an anonymous reviewer whose comments have improved the readability of this paper.
Rights and permissions
About this article
Cite this article
Granaas, M.M. TIMEX2: A modified C-language timer for PC AT class machines. Behavior Research Methods, Instruments, & Computers 21, 619–622 (1989). https://doi.org/10.3758/BF03210586
Received:
Accepted:
Issue Date:
DOI: https://doi.org/10.3758/BF03210586