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 * Defines the API ... |
11 * | 11 * |
12 * @addtogroup PP | 12 * @addtogroup PP |
13 * @{ | 13 * @{ |
14 */ | 14 */ |
15 | 15 |
| 16 #include "ppapi/c/pp_macros.h" |
| 17 |
16 /** | 18 /** |
17 * PP_Time represents the "wall clock time" according to the browser and is | 19 * PP_Time represents the "wall clock time" according to the browser and is |
18 * defined as the number of seconds since the Epoch (00:00:00 UTC, January 1, | 20 * defined as the number of seconds since the Epoch (00:00:00 UTC, January 1, |
19 * 1970). | 21 * 1970). |
20 */ | 22 */ |
21 typedef double PP_Time; | 23 typedef double PP_Time; |
| 24 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Time, 8); |
22 | 25 |
23 /** | 26 /** |
24 * Represents time ticks which is measured in seconds and is used for indicating | 27 * Represents time ticks which is measured in seconds and is used for indicating |
25 * the time that certain messages were received. In contrast to PP_Time, it | 28 * the time that certain messages were received. In contrast to PP_Time, it |
26 * does not correspond to any actual wall clock time and will not change | 29 * does not correspond to any actual wall clock time and will not change |
27 * discontinuously if the user changes their computer clock. | 30 * discontinuously if the user changes their computer clock. |
28 * | 31 * |
29 * The units are in seconds, but are not measured relative to any particular | 32 * The units are in seconds, but are not measured relative to any particular |
30 * epoch, so the most you can do is compare two values. | 33 * epoch, so the most you can do is compare two values. |
31 */ | 34 */ |
32 typedef double PP_TimeTicks; | 35 typedef double PP_TimeTicks; |
| 36 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_TimeTicks, 8); |
33 | 37 |
34 /** | 38 /** |
35 * @} | 39 * @} |
36 * End addtogroup PP | 40 * End addtogroup PP |
37 */ | 41 */ |
38 #endif // PPAPI_C_PP_TIME_H_ | 42 #endif // PPAPI_C_PP_TIME_H_ |
OLD | NEW |