[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:
parent
0b1c7320ab
commit
cbde065a01
@ -130,7 +130,7 @@ get_time (void)
|
|||||||
|
|
||||||
g_get_current_time (&timeval);
|
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
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user