Re: GetSystemTime and millisecons
- From: 5thWheel <nospam@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 08 Aug 2007 08:45:09 +0100
Alexander wrote:
Good Day!
Please help! I try resive milliseconds in WinCE4.2. I use GetSystemTime(), but in returning structrure always milliseconds = 0. I look at platform builder source code this command and see that it is not get milliseconds from system, it set 0.
How I can recive millisecond connecting with system time? And set full systet time?
Have a look at this:
http://groups.google.co.uk/group/microsoft.public.windowsce.embedded.vc/browse_thread/thread/6ae43e1eebf67aa2/d8fd7f06d016779b?lnk=st&q=cmconReal-TimeClock.asp&rnum=3#d8fd7f06d016779b
It worked just fine for me on a PC-like platform running WCE4.2
Gah, MS seem to have removed the article that I linked to (MSDN seems utterly rubbish like that, 9 times in 10 someone says "go here" and you click and it is gone:/).
I have uploaded the rtc.c that I successfully used to
www.smarkah.eclipse.co.uk/public/rtc.c
You should note Steve Maillet's comment in the thread that I linked. We did not need millisecond accuracy in the end (we synched the clock up as best we could and used a microcontroller to give us micro or nanosecond (I forget which!) accurate corrections!).
.
- Prev by Date: Accessing processor name programmatically
- Next by Date: Re: Accessing processor name programmatically
- Previous by thread: Accessing processor name programmatically
- Next by thread: How to identify key pressed by user when he uses french keyboard set
- Index(es):
Relevant Pages
|