Panda3D
Loading...
Searching...
No Matches
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
16TypeHandle 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 */
28get_timestamp() const {
29 return 0.0;
30}
virtual double get_timestamp() const =0
Returns the timestamp that is the result of this timer query.
TypeHandle is the identifier used to differentiate C++ class types.
Definition typeHandle.h:81
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.