It's UWAweek 9 (1st semester, week 1)

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.
Displaying selected article
Showing 1 of 1168 articles.
Currently 5 other people reading this forum.


 UWA week 36 (2nd semester, mid-semester break) ↓
SVG not supported

Login to reply

👍?
helpful

Yeah, I'm also going to just add 1usec. As I don't increment by 1usec anyway. I try to increment to the next event that will occur to make it more efficient. I mean your method sounds pretty good, as it does just seem to add 1usec each time for a syscall, which doesn't work so well with the underlying logic. And yeah, I also use mod. I mean we can use math.h, but I think ceil() is already a function without it. But yeah, mod is nicer. Depending on how you're doing it (like I multiply the data by 1000000 to get it to work properly), you may need to use long long ints just in case to prevent overflow.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  5:07AM Sep 06 2023
Privacy policy