Add reference to ln.types, add timing meassurement to QueryTime(..)
parent
32f70dcf48
commit
e0693765fa
|
@ -47,6 +47,10 @@
|
|||
<Project>{D471A566-9FB6-41B2-A777-3C32874ECD0E}</Project>
|
||||
<Name>ln.logging</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\ln.types\ln.types.csproj">
|
||||
<Project>{8D9AB9A5-E513-4BA7-A450-534F6456BF28}</Project>
|
||||
<Name>ln.types</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
|
@ -12,6 +12,7 @@ using System.IO;
|
|||
using ln.logging;
|
||||
using System.Runtime.Remoting.Messaging;
|
||||
using System.Text;
|
||||
using ln.types.threads;
|
||||
namespace ln.perfdb.storage
|
||||
{
|
||||
/**
|
||||
|
@ -156,10 +157,13 @@ namespace ln.perfdb.storage
|
|||
{
|
||||
lock (this)
|
||||
{
|
||||
int queryRecords = timeWindow / FirstSection.tWindow;
|
||||
int skipRecords = skipTime / FirstSection.tWindow;
|
||||
return Timing.Meassure(String.Format("QueryTime({0},{1}) [{2}]",timeWindow,skipTime,FileName), () =>
|
||||
{
|
||||
int queryRecords = timeWindow / FirstSection.tWindow;
|
||||
int skipRecords = skipTime / FirstSection.tWindow;
|
||||
|
||||
return Query(queryRecords, skipRecords);
|
||||
return Query(queryRecords, skipRecords);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue