]> mj.ucw.cz Git - libucw.git/commitdiff
Time: Documented the header splitoff
authorMartin Mares <mj@ucw.cz>
Thu, 16 Feb 2012 19:19:51 +0000 (20:19 +0100)
committerMartin Mares <mj@ucw.cz>
Thu, 16 Feb 2012 19:19:51 +0000 (20:19 +0100)
ucw/doc/index.txt
ucw/doc/relnotes.txt
ucw/time.h

index aaaadc6e965436315a5a06843827836b5bcd5ad1..e96443afcabb3a049b5db40bd1e61d6559bc1e1b 100644 (file)
@@ -12,6 +12,8 @@ not described, so you might need to look into the source code.
 
 You can see the index of <<def_index:,documented definitions>>.
 
+For news and incompatible changes in this version, see the <<relnotes:,Release notes>>.
+
 Modules
 -------
 - <<basics:,Basics>>
@@ -45,7 +47,6 @@ Other features
 - <<config:,Configuration file syntax>>
 - <<docsys:,Documentation system>>
 - <<generic:,Macro-generated generics>>
-- <<relnotes:,Release notes>>
 
 Yet undocumented modules
 ------------------------
index 7dfc41a3a58cd206b59019132e8f2656713e4143..8f46e1da116a96aa0809f425c5908721446fde26 100644 (file)
@@ -61,6 +61,7 @@ Release notes
 * *Incompatible:* Several modules now have their own header files:
 ** `process.h` -- all functions related to processes, previously declared in `lib.h`
 ** `io.h` -- functions related to files from `lib.h` and `lfs.h`
+** `time.h` -- timestamps and interval timers, previously in `lib.h`
 
 * *Incompatible:* Several configuration options were renamed or removed:
 ** `CONFIG_FAKE_ELTPOOL` &rarr; `CONFIG_UCW_FAKE_ELTPOOL`
index 6d07cdc74570d1b42fe3a2cbb0915f7d05c2a49c..0684bec16bf187a7e3b65b2f61488955fdc0806c 100644 (file)
@@ -20,6 +20,8 @@
  * system boot if POSIX monotonic clock is used.
  ***/
 
+/* time-stamp.c */
+
 timestamp_t get_timestamp(void);               /** Get current time as a millisecond timestamp. **/
 
 /***
@@ -30,6 +32,8 @@ timestamp_t get_timestamp(void);              /** Get current time as a millisecond timestam
  * the number of milliseconds elapsed since the previous read or initialization.
  ***/
 
+/* time-timer.c */
+
 void init_timer(timestamp_t *timer);           /** Initialize a timer. **/
 uns get_timer(timestamp_t *timer);             /** Get the number of milliseconds since last init/get of a timer. **/
 uns switch_timer(timestamp_t *oldt, timestamp_t *newt);        /** Stop ticking of one timer and resume another. **/