Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time64 #23

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Demo/GL/gljuggler/gljuggler.c
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,10 @@ char exitflag=0;
int t;
int nexttime;
int nframes=0;
#ifdef __AROS__
#else
struct itimerval itval;
#endif
SDL_Event event;
int code;
int isdown = 0;
Expand Down
2 changes: 1 addition & 1 deletion Games/cxhextris/arosio.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ char **argv;
{
struct Message *m;

TimerIO->tr_time.tv_sec = tp.tv_sec;
TimerIO->tr_time.tv_secs = tp.tv_sec;
TimerIO->tr_time.tv_micro = tp.tv_usec;

SetSignal(0, TimerMask);
Expand Down
4 changes: 2 additions & 2 deletions MultiMedia/cdxlplay/usleep_aros.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void cleanup_usleep(void) {

int usleep(useconds_t usec) {
timer_io->tr_node.io_Command = TR_ADDREQUEST;
timer_io->tr_time.tv_sec = usec / 1000000UL;
timer_io->tr_time.tv_usec = usec % 1000000UL;
timer_io->tr_time.tv_secs = usec / 1000000UL;
timer_io->tr_time.tv_micro = usec % 1000000UL;
return DoIO(&timer_io->tr_node) ? -1 : 0;
}
6 changes: 4 additions & 2 deletions aminet/comm/term/term/Extras/Source/Accountant.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ AccountantEntry(VOID)
/* Start waiting again */

TimeRequest->tr_node.io_Command = TR_ADDREQUEST;
TimeRequest->tr_time = TimeVal;
TimeRequest->tr_time.tv_secs = TimeVal.tv_secs;
TimeRequest->tr_time.tv_micro = TimeVal.tv_micro;

SendIO((struct IORequest *)TimeRequest);

Expand Down Expand Up @@ -193,7 +194,8 @@ AccountantEntry(VOID)
/* Start waiting */

TimeRequest->tr_node.io_Command = TR_ADDREQUEST;
TimeRequest->tr_time = Message->Time;
TimeRequest->tr_time.tv_secs = Message->Time.tv_secs;
TimeRequest->tr_time.tv_micro = Message->Time.tv_micro;

SendIO((struct IORequest *)TimeRequest);

Expand Down
3 changes: 2 additions & 1 deletion aminet/comm/term/term/Extras/Source/Sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,8 @@ PlaySound(struct SoundInfo *SoundInfo)
if(!OpenDevice(TIMERNAME,UNIT_VBLANK,(struct IORequest *)SoundTimeRequest,0))
{
SoundTimeRequest->tr_node.io_Command = TR_ADDREQUEST;
SoundTimeRequest->tr_time = SoundInfo->SoundTime;
SoundTimeRequest->tr_time.tv_secs = SoundInfo->SoundTime.tv_secs;
SoundTimeRequest->tr_time.tv_micro = SoundInfo->SoundTime.tv_micro;

SetSignal(0,PORTMASK(SoundTimePort));

Expand Down