Panda3D
 All Classes Functions Variables Enumerations
timerQueryContext.cxx
1 // Filename: timerQueryContext.cxx
2 // Created by: rdb (22Aug14)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "timerQueryContext.h"
16 
17 TypeHandle TimerQueryContext::_type_handle;
18 
19 ////////////////////////////////////////////////////////////////////
20 // Function: TimerQueryContext::get_timestamp
21 // Access: Public, Virtual
22 // Description: Returns the timestamp that is the result of this
23 // timer query. There's no guarantee about which
24 // clock this uses, the only guarantee is that
25 // subtracting a start time from an end time should
26 // yield a time in seconds.
27 // If is_answer_ready() did not return true, this
28 // function may block before it returns.
29 //
30 // It is only valid to call this from the draw thread.
31 ////////////////////////////////////////////////////////////////////
33 get_timestamp() const {
34  return 0.0;
35 }
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:85