Added timing code to debug version of search

This commit is contained in:
Rich 2009-05-19 19:49:08 +00:00
parent d4832f12ff
commit 51c044791c

View File

@ -787,6 +787,9 @@ namespace Volian.Controls.Library
private void btnSearch_Click(object sender, EventArgs e)
{
#if DEBUG
DateTime start = DateTime.Now;
#endif
Cursor savcursor = Cursor;
try
{
@ -869,6 +872,9 @@ namespace Volian.Controls.Library
{
Cursor = savcursor;
}
#if DEBUG
MessageBox.Show(string.Format("{0} Milliseconds", TimeSpan.FromTicks(DateTime.Now.Ticks - start.Ticks).TotalMilliseconds));
#endif
}
private void cbxTextSearchText_Leave(object sender, EventArgs e)