1
//========================================================================
5
// This file is licensed under GPLv2 or later
7
// Copyright 2005 Jonathan Blandford <jrb@redhat.com>
8
// Copyright 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
9
// Copyright 2010 Hib Eris <hib@hiberis.nl>
10
// Inspired by gtimer.c in glib, which is Copyright 2000 by the GLib Team
12
//========================================================================
17
#ifdef USE_GCC_PRAGMAS
22
#ifdef HAVE_GETTIMEOFDAY
30
//------------------------------------------------------------------------
32
//------------------------------------------------------------------------
37
// Create a new timer.
45
#ifdef HAVE_GETTIMEOFDAY
46
struct timeval start_time;
47
struct timeval end_time;
49
LARGE_INTEGER start_time;
50
LARGE_INTEGER end_time;