Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
clock() function
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Daniel Vallstrom, post: 1681889"] I have only claimed that it's "fairly portable" (which might be a contradiction in terms). What do you propose if someone needs large clock timings? I could try some non-C solution which I don't know how to do and which probably would be system specific and limited? Or I could fairly easily code some C module to keep track of the wraparounds and which will work on all systems I'm coding for. Both. From the C compiler/system you need that it really uses wraparounds and that the wraparounds don't occur too frequently. Then you have to check the clock frequently enough in the code that needs the timers. It's also dependent on the input to the program. This obviously isn't a perfect solution but for me at least it seemed better than the alternative --- but that might be because I'm too ignorant of what the alternative would be. Daniel Vallstrom [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
clock() function
Top