30.12.2013 Views

T-Kernel Specification (1.B0.02)

T-Kernel Specification (1.B0.02)

T-Kernel Specification (1.B0.02)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

166 CHAPTER 4. T-KERNEL/OS FUNCTIONS<br />

tk get tim<br />

Get Time<br />

[C Language Interface]<br />

ER ercd = tk_get_tim ( SYSTIM *pk_tim ) ;<br />

[Parameters]<br />

SYSTIM* pk tim Address of current time packet<br />

[Return Parameters]<br />

ER ercd Error code<br />

pk tim detail:<br />

SYSTIM systim Current system time<br />

[Error Codes]<br />

E OK<br />

E PAR<br />

Normal completion<br />

Parameter error (pk tim is invalid)<br />

[Description]<br />

Reads the current value of the system clock and returns in it systim.<br />

System time is expressed as cumulative milliseconds from 0:00:00 (GMT), January 1, 1985.<br />

Copyright c○ 2002, 2003 by T-Engine Forum<br />

T-<strong>Kernel</strong> <strong>1.B0.02</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!