title: Using struct timeval in Python
body: <p>I have a C program containing a structure</p>
  
  <pre><code>struct S{
             int x;
             struct timeval t;
   };
  </code></pre>
  
  <p>and a function</p>
  
  <pre><code>int func(struct S s1, struct S s2)
  </code></pre>
  
  <p>I need to call this function from my python program.
  I am using ctypes.The parallel structure on Python</p>
  
  <pre><code>import ctypes
  from ctypes import *
  class S(Structure):
          _fields_ = [("x",c_int),
                       ("t", ?)]
  </code></pre>
  
  <p>Now, my question is what will I write in the ? place and any dependencies related to it.
  Thanks in advance. </p>