R
Richard
My custom shell grabs the current time when the shell program starts up. It
then has a counter that counts the number of seconds, minutes, hours, and
days the machine has been up. It works great, 95% of the time.
Sometimes when XPe Boots, the shell loads and starts its counting. After
about 30 seconds, the cursor hour glass comes up for a second and my time
changes to an hour before the time was originally when my shell started.
This plays havoc on my shell count since the current time now is before the
start time.
I use GMT time, the only thing I can think of is that something happens
during boot where windows converts the time. 95% of the time, my shell
loads after that conversion, sometimes, it may load before that conversion.
I'm doing a simple deal like this....
On Form Create Event....
CompStartTime := Now;
Then once per second, I get the current time and do
a subtraction to find elapsed time. ElapsedTime := Now - CompStartTime;
Then I decode Elapsed time into the segments I need.
Always works except for the occassional boot problem.
Any idea what's going on and how I may get around it?
Richard
then has a counter that counts the number of seconds, minutes, hours, and
days the machine has been up. It works great, 95% of the time.
Sometimes when XPe Boots, the shell loads and starts its counting. After
about 30 seconds, the cursor hour glass comes up for a second and my time
changes to an hour before the time was originally when my shell started.
This plays havoc on my shell count since the current time now is before the
start time.
I use GMT time, the only thing I can think of is that something happens
during boot where windows converts the time. 95% of the time, my shell
loads after that conversion, sometimes, it may load before that conversion.
I'm doing a simple deal like this....
On Form Create Event....
CompStartTime := Now;
Then once per second, I get the current time and do
a subtraction to find elapsed time. ElapsedTime := Now - CompStartTime;
Then I decode Elapsed time into the segments I need.
Always works except for the occassional boot problem.
Any idea what's going on and how I may get around it?
Richard