-
-
Save happydeveloper/7093768 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//정의부 | |
/// <summary> | |
/// 수행 시간 측정 | |
/// </summary> | |
/// <param name="startDateTime">시작시간</param> | |
/// <returns>수행시간</returns> | |
private string MeasureRuntTime(DateTime startDateTime) | |
{ | |
DateTime endDateTime = new DateTime(); | |
endDateTime = DateTime.Now; | |
return endDateTime.Subtract(startDateTime).TotalSeconds.ToString("#.##"); | |
} | |
//실행부 | |
System.Diagnostics.Debug.WriteLine("Time start 측청 시작"); | |
DateTime startTime = new DateTime(); | |
startTime = DateTime.Now; | |
//something query perform | |
System.Diagnostics.Debug.WriteLine("GetMemoSendList - 쿼리 수행 시간 Time[seconds] = " + MeasureRuntTime(startTime)); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
C# 코드로 변환