Abstract
A real-time, object-oriented solution for displaying stimuli on Windows 95/98, MacOS and Linux platforms is presented. The program, written in C++, utilizes a special-purpose window class (GLWindow), OpenGL, and 32-bit graphics acceleration; it avoids display timing uncertainty by substituting the new window class for the default window code for each system. We report the outcome of tests for real-time capability across PC and Mac platforms running a variety of operating systems. The test program, which can be used as a shell for programming real-time experiments and testing specific processors, is available at http://www.cs.dal.ca/~macinnwj. We propose to provide researchers with a sense of the usefulness of our program, highlight the ability of many multitasking environments to achieve real time, as well as caution users about systems that may not achieve real time, even under optimal conditions.
Article PDF
Similar content being viewed by others
References
Finney, S. A. (2001). Real-time data collection in Linux: A case study.Behavior Research Methods, Instruments, & Computers,33, 167–173.
Hecht, H., Oesker, M., Kaiser, A., Gvelek, H., &Stecker, T. (1999). A perception experiment with time-critical graphics animation on the World-Wide Web.Behavior Research Methods, Instruments, & Computers,31, 439–445.
McKinney, C. J., MacCormac, E. R., &Welsh-Bohmer, K. A. (1999). Hardware and software for tachistoscopy: How to make accurate measurements on any PC utilizing the Microsoft Windows operating system.Behavior Research Methods, Instruments, & Computers,31, 129–136.
Microsoft Developer Network On-Line Library [On-line], Available: http://msdn.microsoft.com/library/default.asp. (Retrieved March 1, 2001)
Microsoft Windows 2000 Service Pack 1 Download [On-line] Available: http://www.microsoft.com/windows2000/downloads/recommended/spl/default.asp. (Retrieved March 1, 2001)
Myors, B. (1999). Timing accuracy of PC programs runningunder DOS and Windows.Behavior Research Methods, Instruments, & Computers,31, 322–328.
Pelli, D.,Video Toolbox [on-line]. Available: http://vision.nyu.edu/VideoToolbox/. (Retrieved March 1, 2001)
Shore, D. I., Stanford, L., MacInnes, W. J., Klein, R. M., &Brown, R. E. (2001). Of mice and men: Using virtual Hebb-Williams mazes to compare learning across gender and species (Homo sapiens andMusmusculus).Cognitive, Behavioral, & Affective Neuroscience,1, 83–89.
Stevenson, A. K., Francis, G., &Kim, H. (1999). Java experiments for introductory cognitive psychology courses.Behavior Research Methods, Instruments, & Computers,31, 99–106.
Author information
Authors and Affiliations
Corresponding author
Additional information
This research was funded in part by the National Science and Engineering Research Council of Canada, the Canadian Space Agency, and Dalhousie University.
Rights and permissions
About this article
Cite this article
MacInnes, W.J., Taylor, T.L. Millisecond timing on PCs and Macs. Behavior Research Methods, Instruments, & Computers 33, 174–178 (2001). https://doi.org/10.3758/BF03195363
Received:
Accepted:
Issue Date:
DOI: https://doi.org/10.3758/BF03195363