Re: GetSystemTime and millisecons



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!).
.



Relevant Pages

  • Re: GetSystemTime and millisecons
    ... I try resive milliseconds in WinCE4.2. ... 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, ... How I can recive millisecond connecting with system time? ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: COleDateTime ,SystemTimeToVariantTime Issues Questions
    ... AliR. ... > CTime to system time and finally to a variant time with the ...
    (microsoft.public.vc.mfc)
  • Re: GetSystemTime and millisecons
    ... You can only do this if your hardware is designed to return ms from its ... then you must modify the OAL code for ... I try resive milliseconds in WinCE4.2. ... How I can recive millisecond connecting with system time? ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: The Blum-Blum-Shub generator and a guessable seed
    ... The system time is an awful seed. ... It contains next to no entropy from the ... point of view of an attacker. ... "The initial seed x_0 is derived from the system time in milliseconds." ...
    (sci.crypt)
  • Re: accept ... from time
    ... time in milliseconds to be displayed. ... but millisecond accuracy s going to be so ... do your thousands of executions and divide by the ... preparation time will be inseparable from the execution ...
    (comp.lang.cobol)