OLD | NEW |
---|---|
1 /* Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 #ifndef PPAPI_C_PP_TIME_H_ | 5 #ifndef PPAPI_C_PP_TIME_H_ |
6 #define PPAPI_C_PP_TIME_H_ | 6 #define PPAPI_C_PP_TIME_H_ |
7 | 7 |
8 /** | 8 /** |
9 * @file | 9 * @file |
10 * Defines the API ... | 10 * This file defines time and time ticks values. |
dmichael(do not use this one)
2011/02/03 17:42:00
'types' is right here.
| |
11 */ | 11 */ |
12 | 12 |
13 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
14 | 14 |
15 /** | 15 /** |
16 * @addtogroup Typedefs | 16 * @addtogroup Typedefs |
17 * @{ | 17 * @{ |
18 */ | 18 */ |
19 /** | 19 /** |
20 * PP_Time represents the "wall clock time" according to the browser and is | 20 * The PP_Time type represents the "wall clock time" according to the browser |
21 * defined as the number of seconds since the Epoch (00:00:00 UTC, January 1, | 21 * and is defined as the number of seconds since the Epoch (00:00:00 UTC, |
22 * 1970). | 22 * January 1, 1970). |
23 */ | 23 */ |
24 typedef double PP_Time; | 24 typedef double PP_Time; |
25 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Time, 8); | 25 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Time, 8); |
26 /** | 26 /** |
27 * @} | 27 * @} |
28 */ | 28 */ |
29 | 29 |
30 /** | 30 /** |
31 * @addtogroup Typedefs | 31 * @addtogroup Typedefs |
32 * @{ | 32 * @{ |
33 */ | 33 */ |
34 /** | 34 /** |
35 * Represents time ticks which is measured in seconds and is used for indicating | 35 * The PP_TimeTicks value represents time ticks which are measured in seconds |
dmichael(do not use this one)
2011/02/03 17:42:00
The->A
jond
2011/02/03 18:03:14
Done.
jond
2011/02/03 18:03:14
Done.
| |
36 * the time that certain messages were received. In contrast to PP_Time, it | 36 * and are used for indicating the time that certain messages were received. |
37 * does not correspond to any actual wall clock time and will not change | 37 * In contrast to PP_Time, PP_TimeTicks does not correspond to any actual |
38 * discontinuously if the user changes their computer clock. | 38 * wall clock time and will not change discontinuously if the user changes |
39 * their computer clock. | |
39 * | 40 * |
40 * The units are in seconds, but are not measured relative to any particular | 41 * The units are in seconds, but are not measured relative to any particular |
41 * epoch, so the most you can do is compare two values. | 42 * epoch, so the most you can do is compare two values. |
42 */ | 43 */ |
43 typedef double PP_TimeTicks; | 44 typedef double PP_TimeTicks; |
44 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_TimeTicks, 8); | 45 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_TimeTicks, 8); |
45 /** | 46 /** |
46 * @} | 47 * @} |
47 */ | 48 */ |
48 | 49 |
49 #endif /* PPAPI_C_PP_TIME_H_ */ | 50 #endif /* PPAPI_C_PP_TIME_H_ */ |
50 | 51 |
OLD | NEW |