title: expected a declaration. syntax error: ','
body: <pre><code>#pragma once
  #include &lt;ctime&gt;
  #include "lib.h"
  
  class testtime
  {
  public:
      int start_s = 0,stop_s = 0;
      void starttesttime(){
          start_s = clock();
          stop_s = 0;
      },
      stoptesttime(std::string t){
          stop_s = clock();
          std::cout &lt;&lt; t &lt;&lt; " time: " &lt;&lt; (stop_s - start_s) / double(CLOCKS_PER_SEC) &lt;&lt; std::endl;
          start_s = 0;
      };
  };
  </code></pre>
  
  <p>I got the Severity  Code    Description Project File    Line    Suppression State</p>
  
  <pre><code>Error (active)  E0169   expected a declaration  test    c:\Users\AWW\Desktop\test\test\testtime.h   12 .  
  Severity    Code    Description Project File    Line    Suppression State
  Error   C2059   syntax error: ','   test    c:\users\aww\desktop\test\test\testtime.h   12  
  Severity    Code    Description Project File    Line    Suppression State
  Error   C2334   unexpected token(s) preceding '{'; skipping apparent function body  test    c:\users\aww\desktop\test\test\testtime.h   13  
  </code></pre>
  
  <p>I really declare the code. Not really sure </p>