SLikeNet
0.1.3
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
time.h
Go to the documentation of this file.
1
/*
2
* Original work: Copyright (c) 2014, Oculus VR, Inc.
3
* All rights reserved.
4
*
5
* This source code is licensed under the BSD-style license found in the
6
* RakNet License.txt file in the licenses directory of this source tree. An additional grant
7
* of patent rights can be found in the RakNet Patents.txt file in the same directory.
8
*
9
*
10
* Modified work: Copyright (c) 2016-2017, SLikeSoft UG (haftungsbeschränkt)
11
*
12
* This source code was modified by SLikeSoft. Modifications are licensed under the MIT-style
13
* license found in the license.txt file in the root directory of this source tree.
14
*/
15
16
#ifndef __RAKNET_TIME_H
17
#define __RAKNET_TIME_H
18
19
#include "
NativeTypes.h
"
20
#include "
defines.h
"
21
22
namespace
SLNet {
23
24
// Define __GET_TIME_64BIT if you want to use large types for GetTime (takes more bandwidth when you transmit time though!)
25
// You would want to do this if your system is going to run long enough to overflow the millisecond counter (over a month)
26
#if __GET_TIME_64BIT==1
27
typedef
uint64_t
Time
;
28
#define RAK_TIME_FORMAT_STRING "%llu"
29
typedef
uint32_t
TimeMS
;
30
typedef
uint64_t
TimeUS
;
31
#else
32
typedef
uint32_t
Time
;
33
#define RAK_TIME_FORMAT_STRING "%u"
34
typedef
uint32_t
TimeMS
;
35
typedef
uint64_t
TimeUS
;
36
#endif
37
38
}
// namespace SLNet
39
40
#endif
Source
include
slikenet
time.h
Generated on Wed Aug 14 2019 22:09:46 for SLikeNet by
1.8.2