ARM VERSION 1.2 Datový list Strana 176

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 276
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 175
The C and C++ Libraries
4-86 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI 0067D
4.11.1 clock()
This is the standard C library clock function from
time.h
.
Syntax
clock_tclock(void)
Implementation
If the units of
clock_t()
differ from the default of centiseconds you must define
__CLK_TCK
on the compiler command line or in your own header file. The value in the
definition is used for
CLK_TCK
and
CLOCKS_PER_SEC
(the default value is 100 for
centiseconds). If you re-implement
clock()
you must also re-implement
_clock_init()
.
Returns
The returned value is an unsigned integer.
4.11.2 _clock_init()
This is an optional initialization function for
clock()
.
Syntax
__weak void _clock_init(void)
Implementation
You must provide a clock initialization function if
clock()
mustwork with a read-only
timer. If implemented,
_clock_init()
is called from the library initialization code.
Zobrazit stránku 175
1 2 ... 171 172 173 174 175 176 177 178 179 180 181 ... 275 276

Komentáře k této Příručce

Žádné komentáře