/soc/2015/jgeboski/facebook: 5727ffb502c7: facebook: added missi...

James Geboski jgeboski at gmail.com
Fri Aug 21 01:20:15 EDT 2015


Changeset: 5727ffb502c70fb19554df4b6b43db6f83e6aabe
Author:	 James Geboski <jgeboski at gmail.com>
Date:	 2015-08-21 01:18 -0400
Branch:	 facebook
URL: https://hg.pidgin.im/soc/2015/jgeboski/facebook/rev/5727ffb502c7

Description:

facebook: added missing g_get_real_time() compat function

diffstat:

 libpurple/glibcompat.h |  9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diffs (19 lines):

diff --git a/libpurple/glibcompat.h b/libpurple/glibcompat.h
--- a/libpurple/glibcompat.h
+++ b/libpurple/glibcompat.h
@@ -144,6 +144,15 @@ static inline gint64 g_get_monotonic_tim
 	return ((gint64)time_s.tv_sec << 32) | time_s.tv_usec;
 }
 
+static inline gint64 g_get_real_time(void)
+{
+	GTimeVal time_s;
+
+	g_get_current_time(&time_s);
+
+	return (((gint64)time_s.tv_sec) * 1000000) + time_s.tv_usec;
+}
+
 static inline void g_list_free_full(GList *list, GDestroyNotify free_func)
 {
 	g_list_foreach(list, (GFunc)free_func, NULL);



More information about the Commits mailing list