Switched to management branch to develop management module.
Initial commit dunno what has changed.
This commit is contained in:
@ -1,14 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Tanshu.Accounts.PointOfSale
|
||||
{
|
||||
public class BlockTimer : IDisposable
|
||||
{
|
||||
private string _description;
|
||||
private long _start;
|
||||
private readonly string _description;
|
||||
private readonly long _start;
|
||||
|
||||
public BlockTimer(string description)
|
||||
{
|
||||
@ -18,7 +15,7 @@ namespace Tanshu.Accounts.PointOfSale
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
long totalTime = DateTime.Now.Ticks - _start;
|
||||
var totalTime = DateTime.Now.Ticks - _start;
|
||||
Console.WriteLine(_description);
|
||||
Console.Write(" - Total Execution Time: ");
|
||||
Console.Write(new TimeSpan(totalTime).TotalMilliseconds.ToString());
|
||||
|
||||
Reference in New Issue
Block a user