[perf] Fix factor of ten in seconds => microseconds conversion

Typo: 10000000 instead of 1000000 for a million. Also, use
G_INT64_CONSTANT instead of LL for a 64-bit constant, to avoid
extraneous 128-bit arithmetic on 64-bit machines.
This commit is contained in:
Owen W. Taylor 2010-05-24 00:08:00 -04:00
parent 0b1c7320ab
commit cbde065a01

View File

@ -130,7 +130,7 @@ get_time (void)
g_get_current_time (&timeval);
return timeval.tv_sec * 10000000LL + timeval.tv_usec;
return timeval.tv_sec * G_GINT64_CONSTANT(1000000) + timeval.tv_usec;
}
static void