English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 18 August 2024, 22:19   #21
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,882
EClock has the greatest precision but the accuracy depends on interrupts being serviced promptly, as I discovered when trying to benchmark raw Akiko performance under various conditions. The results under Disable() were bonkers because overflows in the counters were not bring handled.
Karlos is online now  
Old Today, 14:59   #22
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 692
Quote:
Originally Posted by alkis View Post
This broke 1.3 support, I think.
I get crash on a program that used to work fine. (uses clock)

ReadEClock does not exist on 1.3


Using DateStamp intead which has a resolution of 20ms.
So I made up some pseudo millis using vhposr.
bebbo is offline  
Old Today, 16:47   #23
alkis
Registered User
 
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 731
Quote:
Originally Posted by bebbo View Post
ReadEClock does not exist on 1.3


Using DateStamp intead which has a resolution of 20ms.
So I made up some pseudo millis using vhposr.
That wouldn't work on vamos. Heh, I managed to pull a version before the raster "enhancement".

On a more serious note though, I don't think the logic holds. 100 raster lines are not 100ms.
alkis is offline  
Old Today, 18:55   #24
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 692
Quote:
Originally Posted by alkis View Post
That wouldn't work on vamos. Heh, I managed to pull a version before the raster "enhancement".

On a more serious note though, I don't think the logic holds. 100 raster lines are not 100ms.

It is working on my vamos!
Code:
vamos clock
404 404 405 405 405 405 405 405 405 405 405 406 406 406 406 406 406 407 407 407
EDIT:
And the tick resolution is 20ms, so I have to make up 19ms inbetween.
It looks also ok in WinUAE.
bebbo is offline  
 


Currently Active Users Viewing This Thread: 2 (1 members and 1 guests)
peceha
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
GCC 6.2 toolchain for AmigaOS 3 Samurai_Crow Coders. C/C++ 1557 Yesterday 20:08
Setting up a debugging environment for Bebbo's Amiga GCC toolchain Nightfox Coders. C/C++ 3 12 July 2024 19:48
Can't make bebbo's amiga-gcc work Bren McGuire Coders. General 18 12 June 2023 01:09
bebbo gcc+eclipse problem Raislin77it Coders. C/C++ 1 15 February 2022 08:37
gcc-bebbo: argc is always 0 sparhawk Coders. C/C++ 8 31 January 2021 18:42

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 21:29.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07155 seconds with 15 queries