title: AWS Lambda, billed time longer than processing time
body: <p>In my Lambda function (Node.js), I measured the time from the start of my function to the end of my function which is about 1400 milliseconds. However, the billed duration lambda gives me is 2800 milliseconds.</p>
  
  <p>Is this normal? What could be the reason for this high discrepancy (it's basically double)?</p>
  
  <p>Here's the code I used to measure</p>
  
  <pre><code>exports.handler = function(event, context, callback) {
      let time = new Date();
  
      ... some logic runs ...
  
      console.log(`{new Date().getTime() - time.getTime()}`);
      callback(null, response);
  }
  </code></pre>