|
Register or have you forgotten your password?
|
|
|
| Amiga OS -- Development This particular forum deals with issues regarding development for all versions of AmigaOS. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 | ||||||||
|
Kindred of Babble-on
![]()
Join Date: Feb 2002
Posts: 2,786
|
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\" |
||||||||
|
|
|
![]() |
| Bookmarks |
| Tags |
| time , crazy , sounds , string , microseconds |
| Thread Tools | |
| Display Modes | |
|
|
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 |