Ver código fonte

*** empty log message ***

Mike Goslin 25 anos atrás
pai
commit
318474d675

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

@@ -233,3 +233,32 @@ INLINE void ClockObject::
 set_time(double time) {
 set_time(double time) {
   set_real_time(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++;
   _frame_count++;
 }
 }
 
 
-////////////////////////////////////////////////////////////////////
-//     Function: TimeVal::contructor
-//       Access: Public
-//  Description:
-////////////////////////////////////////////////////////////////////
-TimeVal::
-TimeVal(void) {
-}
-
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //     Function: get_time_of_day 
 //     Function: get_time_of_day 
 //  Description:
 //  Description:

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

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