docs: Recommend against using GTimeVal

This commit is contained in:
Ryan Lortie 2010-11-02 22:12:55 -04:00
parent e4ad3442c0
commit 1cf14de82f

View File

@ -52,10 +52,7 @@ representation is valid. Sometimes neither is valid. Use the API.
</para> </para>
<para> <para>
GLib doesn't contain any time-manipulation functions; however, there GLib also features #GDateTime which represents a precise time.
is a #GTime typedef and a #GTimeVal struct which represents a more
precise time (with microseconds). You can request the current time as
a #GTimeVal with g_get_current_time().
</para> </para>
<!-- ##### SECTION See_Also ##### --> <!-- ##### SECTION See_Also ##### -->
@ -84,6 +81,12 @@ Similar to the <structname>struct timeval</structname> returned by
the <function>gettimeofday()</function> UNIX call. the <function>gettimeofday()</function> UNIX call.
</para> </para>
<para>
GLib is attempting to unify around the use of 64bit integers to
represent microsecond-precision time. As such, this type will be
removed from a future version of GLib.
</para>
@tv_sec: seconds @tv_sec: seconds
@tv_usec: microseconds @tv_usec: microseconds