summaryrefslogtreecommitdiff
path: root/indra/llcommon/timing.h
blob: f09fb0f92b6e9f65ab45e55038865dfa27d2ddf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/** 
 * @file timing.h
 * @brief Cross-platform routines for doing timing.
 *
 * Copyright (c) 2000-$CurrentYear$, Linden Research, Inc.
 * $License$
 */

#ifndef LL_TIMING_H					
#define LL_TIMING_H

#include <time.h>

#if LL_LINUX || LL_DARWIN
#		include <sys/time.h>
#endif


const F32 SEC_TO_MICROSEC = 1000000.f;
const U64 SEC_TO_MICROSEC_U64 = 1000000;
const U32 SEC_PER_DAY = 86400;

// This is just a stub, implementation in lltimer.cpp.  This file will be deprecated in the future.
U64 totalTime();					// Returns current system time in microseconds

#endif