title: Convert high resolution clock time into an integer (Chrono)
body: <p>I want to be able to get nanosecond accuracy with the chrono library but I can't figure out how to convert <code>std::chrono::high_resolution_clock::now()</code> into <code>long int</code>. I tried this:</p>
  
  <pre><code>#include &lt;chrono&gt;
  #include &lt;iostream&gt;
  using namespace std;
  
  int main() {
      typedef std::chrono::high_resolution_clock Clock;
  
      long int val = Clock::now();
  
      cout &lt;&lt; val &lt;&lt; endl;
  
      cin.ignore();
      return 0;
  }
  </code></pre>
  
  <p>But this gave me the error: <code>error C2440: 'initializing' : cannot convert from 'std::chrono::system_clock::time_point' to 'long'</code>
  How can I convert it to a 64 bit int? If I can't then I don't see how chrono is useful.</p>