mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-23 01:16:43 -06:00
Clean up unused gettimeofday argument
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13562 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
add320b37c
commit
47c9948cd3
@ -204,14 +204,11 @@ void
|
||||
qof_start_clock (int clockno, QofLogModule log_module, QofLogLevel log_level,
|
||||
const gchar *function_name, const gchar *format, ...)
|
||||
{
|
||||
#ifdef HAVE_GETTIMEOFDAY
|
||||
struct timezone tz;
|
||||
#endif
|
||||
va_list ap;
|
||||
|
||||
if ((0>clockno) || (NUM_CLOCKS <= clockno)) return;
|
||||
#ifdef HAVE_GETTIMEOFDAY
|
||||
gettimeofday (&qof_clock[clockno], &tz);
|
||||
gettimeofday (&qof_clock[clockno], NULL);
|
||||
#else
|
||||
time (&(qof_clock[clockno].tv_sec));
|
||||
qof_clock[clockno].tv_usec = 0;
|
||||
@ -236,15 +233,12 @@ void
|
||||
qof_report_clock (gint clockno, QofLogModule log_module, QofLogLevel log_level,
|
||||
const gchar *function_name, const gchar *format, ...)
|
||||
{
|
||||
#ifdef HAVE_GETTIMEOFDAY
|
||||
struct timezone tz;
|
||||
#endif
|
||||
struct timeval now;
|
||||
va_list ap;
|
||||
|
||||
if ((0>clockno) || (NUM_CLOCKS <= clockno)) return;
|
||||
#ifdef HAVE_GETTIMEOFDAY
|
||||
gettimeofday (&now, &tz);
|
||||
gettimeofday (&now, NULL);
|
||||
#else
|
||||
time (&(now.tv_sec));
|
||||
now.tv_usec = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user