Tim Prince wrote:
David wrote:
We only know the system ticks count, but we have no date or time function.
So we need the source code about solving the problem. I have googled several
times and no good results. can u help me?
Unless you have a system function which quotes tick rate, you must use a
test loop to calibrate it yourself.
If you don't have a C implementation sufficient to provide time of day
information, you are far outside the scope of the newsgroup.
A "freestanding environment" (section 5.1.2.1) need not
provide a complete library implementation.
The O.P.'s fundamental problem is that he hasn't specified
what a "system tick" is. If it's a regularly-changing count
with a known zero point, conversion to human-readable form is
fairly straightforward. If it's a regularly-changing count
whose zero is not fixed (e.g., "most recent power-up"), the
conversion is impossible without further information. If it's
some more exotic quantity ("number of instruction issues since
power-up"), the conversion may be impossible altogether.
So, O.P.: What's a "system tick?" Something that carries
"system Lyme disease?"
--
Er*********@sun.com