aboutsummaryrefslogtreecommitdiff
path: root/src/shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell.c')
-rw-r--r--src/shell.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/shell.c b/src/shell.c
index 4f34ccceb..aab70b29d 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -71,6 +71,9 @@ extern int isatty();
#define isatty(x) 1
#endif
+/* True if the timer is enabled */
+static int enableTimer = 0;
+
#if !defined(_WIN32) && !defined(WIN32) && !defined(__OS2__) && !defined(__RTP__) && !defined(_WRS_KERNEL)
#include <sys/time.h>
#include <sys/resource.h>
@@ -78,9 +81,6 @@ extern int isatty();
/* Saved resource information for the beginning of an operation */
static struct rusage sBegin;
-/* True if the timer is enabled */
-static int enableTimer = 0;
-
/*
** Begin timing an operation
*/
@@ -124,9 +124,6 @@ static FILETIME ftUserBegin;
typedef BOOL (WINAPI *GETPROCTIMES)(HANDLE, LPFILETIME, LPFILETIME, LPFILETIME, LPFILETIME);
static GETPROCTIMES getProcessTimesAddr = NULL;
-/* True if the timer is enabled */
-static int enableTimer = 0;
-
/*
** Check to see if we have timer support. Return 1 if necessary
** support found (or found previously).