Skip to content

Prefer g_get_real_time() over time(NULL)

Niels De Graef requested to merge wip/nielsdg/avoid-time-null into master

Especially when casting the result to guint64, since this might not be always correct.

See also issue #1402 (closed).

The only uses of time(2) are now in GBookmarkFile (where we are explicitly returning time_t) and GDate/GDateTime and their respective tests.

Merge request reports