Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

glib: Add g_get_real_time() blurb.

  • Loading branch information...
commit fa820e8b651e1c9a8ca6e50d9d0f482392225745 1 parent 8f47608
@chergert authored
Showing with 4 additions and 7 deletions.
  1. +4 −7 tex/glib_datetime.tex
View
11 tex/glib_datetime.tex
@@ -53,6 +53,10 @@ \section{GTimeVal}
g_free(tvstr);
\end{code}
+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|.
+
\section{GDateTime}
@@ -188,10 +192,3 @@ \section{Monotonic Time}
gint64 now = g_get_monotonic_time();
\end{Terminal}
-
-TODO
-
-\begin{itemize}
-\item \verb|g_usleep()|
-\item \verb|g_get_real_time()|
-\end{itemize}
Please sign in to comment.
Something went wrong with that request. Please try again.