title: timeval not returning expecting results
body: <p>I have some code shown below:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;sys/time.h&gt;
  
  typedef struct{
       struct timeval timestamp;
  }teststruct;
  
  class TestClass {
       public:
         TestClass();
         void dosomething(int, int);
  };
  
  TestClass::TestClass(){
  }
  
  void
  TestClass::dosomething(int num, int numb) {
  }
  
  int main(void){
       TestClass *testclass = new TestClass();
       teststruct test;
       gettimeofday(&amp;test.timestamp, NULL);
       printf("%llu \n", test.timestamp.tv_sec);
       testclass-&gt;dosomething(1,1);
       printf("%llu \n", test.timestamp.tv_sec);
  }
  </code></pre>
  
  <p>The output of this code is:</p>
  
  <p>13825459612132795564 
  dosomething
  5598307500 </p>
  
  <p>but I have no idea why the first number is messed up.  Also the class call is completely necessary in order for the numbers to be different from one another.</p>