Skip to content
Browse files

glib: Add g_get_real_time() blurb.

  • Loading branch information...
1 parent 8f47608 commit fa820e8b651e1c9a8ca6e50d9d0f482392225745 @chergert committed
Showing with 4 additions and 7 deletions.
  1. +4 −7 tex/glib_datetime.tex
11 tex/glib_datetime.tex
@@ -53,6 +53,10 @@ \section{GTimeVal}
+If you find working with a \verb|GTimeVal| too inconvenient you can also use the function \verb|g_get_real_time()|.
+It will fetch the number of seconds since the UNIX epoch as a \verb|gint64|.
+This is a much better choice if you just need to perform arithmetic on the \verb|tv_sec| field of a \verb|GTimeVal|.
@@ -188,10 +192,3 @@ \section{Monotonic Time}
gint64 now = g_get_monotonic_time();
-\item \verb|g_usleep()|
-\item \verb|g_get_real_time()|

0 comments on commit fa820e8

Please sign in to comment.
Something went wrong with that request. Please try again.