amiga.org
     
iconAll times are GMT -6. The time now is 03:34 AM. | Welcome to Forum, please register to access all of our features.

» Amiga.org » Operating System Specific Discussions » Amiga OS » Amiga OS -- Development » Time to string, but with microseconds (sounds crazy I know)...

Amiga OS -- Development This particular forum deals with issues regarding development for all versions of AmigaOS.

Reply
 
Thread Tools Display Modes
Old 04-24-2006, 01:41 PM   #1
Jose
Kindred of Babble-on
Points: 21,917, Level: 92 Points: 21,917, Level: 92 Points: 21,917, Level: 92
Activity: 10% Activity: 10% Activity: 10%
 
Join Date: Feb 2002
Posts: 2,786
Default Time to string, but with microseconds (sounds crazy I know)...

Hi. There are 2 Dos functions that make getting a date and time to a string very easy: DateStamp() and DateToStr().
However I also want to get microseconds, wich DateToStr() doesn't give.
Note: I prefer precision over efficiency on this one, but I'd like to get both or just know how I could do it otherwise (even if less precise)...8-)

I have imagined two ways:
1- To use GetSysTime() and then convert it to strings using Amiga2Date() and then RawDoFmt(), also using custom code to convert the microseconds part (these functions seem to just ignore it or maybe they take microseconds into account but round to seconds).

2- To use DateStamp() and DateToStr() but also write custom code to convert the remaining given ticks in current minute to seconds and microsseconds ?

1 seems to be more accurate (?) (and I want that), but 2 more efficient and simpler.
By the way, the DateStamp autodoc states ticks are assumed to be 50 per second. Isn't that untrue if you're running a screenmode >15Khz ?
__________________
\"We made Amiga, they {bleep}ed it up\"
Jose is offline   Reply With Quote
Reply

Bookmarks

Tags
time , crazy , sounds , string , microseconds

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Similar sounds sir_inferno Amiga Desktop Audio and Video 12 02-03-2008 04:50 PM
Workbench Sounds Managarm Amiga Software Issues and Discussion 4 06-28-2005 05:51 AM
Baby's name sounds rude Cyberus CH / General 7 10-04-2004 12:14 PM
icons / random sounds amiga2000 Amiga Software Issues and Discussion 2 02-19-2004 10:29 PM
Amigaone sounds weird Skyraker Amiga Hardware Issues and discussion 49 09-11-2003 08:35 AM