Please, explain,
Does tickSet(ulong ticks) and ulong tickGet() calls sets/gets current
time in ticks sinse the start of CURRENT DAY or
since 00:00 Universal Coordinated Time, January 1, 1970 ???
Thank you.
Best Regards,
Tatiana
Budker Institute of Nuclear Physics
prospekt Lavrentev 11
630090, Novosibirsk, RUSSIA
fax +7 3832 342163
phone +7 3832 359977
It returns the number of ticks that have elapsed since the system was booted.
I have never found any reason to set it to anything else. Try setting it
ticks since 1/1/70 and you'd overflow a 32-bit integer.
Dave
>
> Please, explain,
>
> Does tickSet(ulong ticks) and ulong tickGet() calls sets/gets current
> time in ticks sinse the start of CURRENT DAY or
> since 00:00 Universal Coordinated Time, January 1, 1970 ???
>
>
Neither. The tick counter is reset to zero when the board is rebooted
unless your BSP has been modified to automatically hook into a
hardware real-time clock. I did a BSP that supported that once, but
I don't think that WRS ever made it a standard feature. Therefore,
the tick counter only represents the number of ticks since the board
was reset and nothing more.
However, SPARTA has a portion of their VxWorks Intermediate training
class that shows how to convert the tick counter into a rudimentary
wall clock time representation and supply that to things like dosFS
for date and time stamping.
HTH,
-----------------------------------------------------------------
Michael E. Anderson | Integrated Chipware
Chief Scientist | 1861 Wiehle Ave. #300
| Reston, VA 20190
mi...@chipware.com | (703) 736-3504
www.chipware.com (888)430-CHIP | (703) 736-3556 FAX
The next revolution in real time. |
-----------------------------------------------------------------
"Software development is like making a baby.
You can't make a baby in one month by impregnating nine women.
Some things just take time..."
>Does tickSet(ulong ticks) and ulong tickGet() calls sets/gets current
>time in ticks sinse the start of CURRENT DAY or since 00:00 Universal
>Coordinated Time, January 1, 1970 ???
Neither.
The tick counter is set to zero at startup. It can be changed/reset with
tickSet(), without affecting relative timeouts or any other kernel timers.
Tim.
-------------------------------------------------------------------
Tim Allen Ltd
Real-time Embedded Software Consultancy
TimAl...@hotmail.com
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
Richard Wenham
Cranfield Precision
> From: sali...@inp.nsk.su (Tatiana V. Salikova)
> Organization: BINP, Novosibirsk, Russia .
> Message-ID: <7hp25s$5tqp$1...@sky.inp.nsk.su>
> Dear Madam/Sir,
> Please, explain,
> Does tickSet(ulong ticks) and ulong tickGet() calls sets/gets current
> time in ticks sinse the start of CURRENT DAY or
> since 00:00 Universal Coordinated Time, January 1, 1970 ???