Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / Util / counter.cs / 1 / counter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Util { using System; using System.Web; using System.Runtime.InteropServices; ////// internal sealed class Counter { ///Provides access to system timers. ////// not creatable /// private Counter() { } #if UNUSED_CODE internal static float Time(long start) { long time = Value - start; return time / (float)Frequency; } #endif ////// Gets the current system counter value. /// internal static long Value { get { long count = 0; SafeNativeMethods.QueryPerformanceCounter(ref count); return count; } } ////// Gets the frequency of the system counter in counts per second. /// internal static long Frequency { get { long freq = 0; SafeNativeMethods.QueryPerformanceFrequency(ref freq); return freq; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Util { using System; using System.Web; using System.Runtime.InteropServices; ////// internal sealed class Counter { ///Provides access to system timers. ////// not creatable /// private Counter() { } #if UNUSED_CODE internal static float Time(long start) { long time = Value - start; return time / (float)Frequency; } #endif ////// Gets the current system counter value. /// internal static long Value { get { long count = 0; SafeNativeMethods.QueryPerformanceCounter(ref count); return count; } } ////// Gets the frequency of the system counter in counts per second. /// internal static long Frequency { get { long freq = 0; SafeNativeMethods.QueryPerformanceFrequency(ref freq); return freq; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XsltArgumentList.cs
- ProtocolsConfigurationHandler.cs
- TextBox.cs
- WorkflowView.cs
- ParamArrayAttribute.cs
- PropertyTabAttribute.cs
- MergePropertyDescriptor.cs
- PackWebResponse.cs
- FrameworkContextData.cs
- StorageAssociationSetMapping.cs
- EnumerableRowCollectionExtensions.cs
- COMException.cs
- ValidationException.cs
- Constraint.cs
- Focus.cs
- CodeIterationStatement.cs
- _NetRes.cs
- AsyncPostBackErrorEventArgs.cs
- DialogResultConverter.cs
- ConnectionProviderAttribute.cs
- GlyphCache.cs
- PeerEndPoint.cs
- MarkupCompilePass1.cs
- BufferBuilder.cs
- SqlCommandBuilder.cs
- VisualStyleInformation.cs
- BorderGapMaskConverter.cs
- ToolStripContentPanel.cs
- SingleAnimation.cs
- BitmapEffect.cs
- RtfToken.cs
- GridItem.cs
- TemplateComponentConnector.cs
- HtmlTitle.cs
- Effect.cs
- ConnectionManagementElement.cs
- DBSqlParser.cs
- QilPatternVisitor.cs
- ContextMarshalException.cs
- input.cs
- SqlExpander.cs
- WindowsGraphics2.cs
- HostSecurityManager.cs
- Vector3DValueSerializer.cs
- TextClipboardData.cs
- MemberProjectedSlot.cs
- TrackingDataItemValue.cs
- XmlCharType.cs
- SafeLocalMemHandle.cs
- InvalidOleVariantTypeException.cs
- UnknownBitmapEncoder.cs
- UserControlBuildProvider.cs
- EntityException.cs
- dataSvcMapFileLoader.cs
- PrivilegedConfigurationManager.cs
- PropertyConverter.cs
- ReachDocumentReferenceSerializerAsync.cs
- CryptoKeySecurity.cs
- TypeSystemProvider.cs
- Helpers.cs
- HandleExceptionArgs.cs
- DeferrableContentConverter.cs
- loginstatus.cs
- FormatConvertedBitmap.cs
- FunctionCommandText.cs
- ActivityWithResultWrapper.cs
- EncodingTable.cs
- ModuleBuilder.cs
- XmlTextEncoder.cs
- WebPartConnectVerb.cs
- ValidateNames.cs
- PowerModeChangedEventArgs.cs
- SwitchElementsCollection.cs
- PackWebResponse.cs
- RC2.cs
- DiscoveryClientReferences.cs
- Model3D.cs
- HttpCookiesSection.cs
- NullableLongAverageAggregationOperator.cs
- ExtensionQuery.cs
- WebHttpBindingElement.cs
- SHA1CryptoServiceProvider.cs
- InputProcessorProfilesLoader.cs
- SQLDateTime.cs
- XmlDataSource.cs
- Walker.cs
- MaskInputRejectedEventArgs.cs
- DataSourceXmlElementAttribute.cs
- TranslateTransform3D.cs
- TraceLevelStore.cs
- HttpModuleActionCollection.cs
- BinaryCommonClasses.cs
- TextEditorLists.cs
- SqlGatherConsumedAliases.cs
- Mappings.cs
- InheritanceRules.cs
- RegexReplacement.cs
- EpmSourceTree.cs
- DbConnectionStringCommon.cs
- MailDefinition.cs