![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
In the attached JPG (from the program running on the desktop) you can see that I have moved the clockface numbers a few pixels to the right.
This is so that it looks correct when running on the PPC ( the numbers go back a few pixels to the left on the PPC). Is this a font display difference between PC and PPC? Also, is there a way to get date/time returned as UTC rather than local time? Cheers Nick |
|
|||
|
Thanks Erel,
I did run the example clock but haven't yet gone through the code carefully. I'll start using the forelayer right away. (I'm always glad of advice of how to improve my code). Once I get UTC worked out, I'm also going to do an analogue sidereal clock and then, for something spectacularly useless, a decimal sidereal clock. |
|
||||
|
This thread should help you: GetTimeZone
|
|
|||
|
Thanks Erel
GetTimeZone works well. ( as does using the forelayer) While timing wiping out the hands of the clock as opposed to just setting the whole forelayer clockface back to transparent, I noticed something very odd. On the PPC (I have Mio A701 and Mio A702) the last 7 digits of ticks are always zero. This means that the PPC is only retreiving time to an accuracy of one second. This explains why my decimal clock has regular hiccups on the PPC but runs "smooth as..." on the desktop. Is this the case on other PPcs or is it just Mio (A701 is WM5, A702 is WM6) |
|
||||
|
This is the case on all devices.
You can use the lower level function GetTickCount to get a more precise value: Useful Library |
|
|||
|
Thanks
I think that "Usefull Library" should be renamed "very Usefull Library". On the Desktop the GetTickCount updates at the same frequency as does "Now", E,G 15 to 16 ms on one PC and 10 ms on another. On the device GetTickCount undates every ms except for the first which costs 23ms on the A701 and 46ms on the a702. ( I throw away the first 2 calls just to be safe). This means that we can get a more sensitive tick count (1ms ) on the device than on the desktop (10 or 15.6ms) |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| different Font at .drawstring | MM2forever | Questions & Help Needed | 3 | 06-30-2008 06:45 PM |
| can i change font ? | gjoisa | Questions & Help Needed | 1 | 03-29-2008 10:58 AM |
| Font Change | Stanl3yCZ | Questions & Help Needed | 2 | 01-27-2008 07:22 PM |
| Font change | klaus | Questions & Help Needed | 6 | 12-30-2007 07:00 PM |
| Size of font on PDA | BjornF | Basic4ppc Wishlist | 3 | 05-10-2007 04:37 PM |