Panda3D
panda
src
gobj
timerQueryContext.cxx
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file timerQueryContext.cxx
10
* @author rdb
11
* @date 2014-08-22
12
*/
13
14
#include "
timerQueryContext.h
"
15
16
TypeHandle
TimerQueryContext::_type_handle;
17
18
/**
19
* Returns the timestamp that is the result of this timer query. There's no
20
* guarantee about which clock this uses, the only guarantee is that
21
* subtracting a start time from an end time should yield a time in seconds.
22
* If is_answer_ready() did not return true, this function may block before it
23
* returns.
24
*
25
* It is only valid to call this from the draw thread.
26
*/
27
double
TimerQueryContext::
28
get_timestamp
()
const
{
29
return
0.0;
30
}
TimerQueryContext::get_timestamp
virtual double get_timestamp() const =0
Returns the timestamp that is the result of this timer query.
Definition:
timerQueryContext.cxx:28
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition:
typeHandle.h:81
timerQueryContext.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Generated on Wed Jan 23 2019 21:40:04 for Panda3D by
1.8.15