title: How to make a function timedelay by 5 seconds
body: <p>I'm trying to translate this into C# code:</p>
  
  <p>Wait 5 seconds and then debit the bank account.</p>
  
  <p>I've got a feeling I'm close... but this isn't working. Am I doing this the right way?</p>
  
  <pre><code>    public override void Process(BankAccount b, decimal amount)
      {
          DateTime present = DateTime.Now;
          DateTime addFiveSeconds = DateTime.Now.AddSeconds(5);
  
          if (present != addFiveSeconds)
          {
              this.Status = TransactionStatus.Pending;
          }
          else
          {
              b.Debit(amount);
              this.Status = TransactionStatus.Complete;
          }
      }
  </code></pre>