瀏覽代碼

*** empty log message ***

Mike Goslin 25 年之前
父節點
當前提交
318474d675
共有 3 個文件被更改,包括 32 次插入10 次删除
  1. 29 0
      panda/src/express/clockObject.I
  2. 0 9
      panda/src/express/clockObject.cxx
  3. 3 1
      panda/src/express/clockObject.h

+ 29 - 0
panda/src/express/clockObject.I

@@ -233,3 +233,32 @@ INLINE void ClockObject::
 set_time(double time) {
   set_real_time(time);
 }
+
+////////////////////////////////////////////////////////////////////
+//     Function: TimeVal::contructor
+//       Access: Public
+//  Description:
+////////////////////////////////////////////////////////////////////
+INLINE TimeVal::
+TimeVal(void) {
+}
+
+////////////////////////////////////////////////////////////////////
+//     Function: TimeVal::get_sec
+//       Access: Public
+//  Description:
+////////////////////////////////////////////////////////////////////
+INLINE ulong TimeVal::
+get_sec(void) const {
+  return tv[0];
+}
+
+////////////////////////////////////////////////////////////////////
+//     Function: TimeVal::get_usec
+//       Access: Public
+//  Description:
+////////////////////////////////////////////////////////////////////
+INLINE ulong TimeVal::
+get_usec(void) const {
+  return tv[1];
+}

+ 0 - 9
panda/src/express/clockObject.cxx

@@ -53,15 +53,6 @@ tick() {
   _frame_count++;
 }
 
-////////////////////////////////////////////////////////////////////
-//     Function: TimeVal::contructor
-//       Access: Public
-//  Description:
-////////////////////////////////////////////////////////////////////
-TimeVal::
-TimeVal(void) {
-}
-
 ////////////////////////////////////////////////////////////////////
 //     Function: get_time_of_day 
 //  Description:

+ 3 - 1
panda/src/express/clockObject.h

@@ -13,7 +13,9 @@
 
 class EXPCL_PANDAEXPRESS TimeVal {
 PUBLISHED:
-  TimeVal();
+  INLINE TimeVal(void);
+  INLINE ulong get_sec(void) const;
+  INLINE ulong get_usec(void) const;
   ulong tv[2];
 };