1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 * Use of this source code is governed by a BSD-style license that can be 3 * found in the LICENSE file. 4 */ 5 6 /** 7 * This file defines time, time ticks and time delta types. 8 */ 9 10 11 /** 12 * The <code>PP_Time</code> type represents the "wall clock time" according 13 * to the browser and is defined as the number of seconds since the Epoch 14 * (00:00:00 UTC, January 1, 1970). 15 */ 16 [assert_size(8)] 17 typedef double_t PP_Time; 18 19 /** 20 * A <code>PP_TimeTicks</code> value represents time ticks which are measured 21 * in seconds and are used for indicating the time that certain messages were 22 * received. In contrast to <code>PP_Time</code>, <code>PP_TimeTicks</code> 23 * does not correspond to any actual wall clock time and will not change 24 * discontinuously if the user changes their computer clock. 25 * 26 * The units are in seconds, but are not measured relative to any particular 27 * epoch, so the most you can do is compare two values. 28 */ 29 [assert_size(8)] 30 typedef double_t PP_TimeTicks; 31 32 /** 33 * A <code>PP_TimeDelta</code> value represents a duration of time which is 34 * measured in seconds. 35 */ 36 [assert_size(8)] 37 typedef double_t PP_TimeDelta; 38