delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/07/13/05:15:09

Date: Wed, 13 Jul 94 09:44:23 BST
From: Peyman Faratin <faratinp AT cs DOT man DOT ac DOT uk>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Unix itimer -> Dos itimer?

Does anybody know if djgpp has a Unix struct equivalent to itimerval?

I'm trying to time intervals in millisecs on the system. Basically, I'm writting a software for human reaction time testing. The time between successive stimuli should be a variable in milliseconds. I managed to solve the problem on Unix by using setitimer() to fill in struct itimerval (in sys/time.h). But when I transported the code to a PC I get djgpp error about itimerval.

Is there such a struct and if not can anybody be kind enough to moot a possible suggestion of alternative solutions?

Thankyou in advance.

Peyman

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019