tests: Replace use of deprecated GTimeVal
tests: Replace use of deprecated GTimeVal

Replace the deprecated g_get_current_time with g_get_real_time. Adjust
the value calculation so it remains the same.

GNOME/libgit2-glib,GNOME/libgit2-glib