Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CheckBoxPopupAdapter.cs
- ListViewInsertEventArgs.cs
- UnmanagedBitmapWrapper.cs
- EntitySet.cs
- SQLGuid.cs
- MethodBuilderInstantiation.cs
- LambdaCompiler.Unary.cs
- TriggerBase.cs
- ControlIdConverter.cs
- Crypto.cs
- ThreadWorkerController.cs
- XmlSchemaInfo.cs
- VoiceInfo.cs
- ImageClickEventArgs.cs
- Profiler.cs
- recordstate.cs
- DialogResultConverter.cs
- EntityDataSourceView.cs
- FileUtil.cs
- SiteOfOriginContainer.cs
- WindowInteropHelper.cs
- ProviderException.cs
- XmlQuerySequence.cs
- SqlInternalConnectionSmi.cs
- WebBrowsableAttribute.cs
- SQLDouble.cs
- InputProcessorProfiles.cs
- WebPartTransformer.cs
- LabelAutomationPeer.cs
- EventItfInfo.cs
- DataColumnMappingCollection.cs
- TypeUtil.cs
- BitmapFrameDecode.cs
- ActivityMarkupSerializer.cs
- QuerySubExprEliminator.cs
- Point3D.cs
- OSFeature.cs
- Animatable.cs
- Workspace.cs
- SerializationException.cs
- RSAOAEPKeyExchangeFormatter.cs
- BufferedGraphicsContext.cs
- URIFormatException.cs
- Cursor.cs
- ClientFormsAuthenticationCredentials.cs
- Rotation3D.cs
- CompilerCollection.cs
- HttpRawResponse.cs
- ScriptManagerProxy.cs
- WindowsButton.cs
- SQLDateTimeStorage.cs
- PKCS1MaskGenerationMethod.cs
- OdbcConnection.cs
- IdentityModelDictionary.cs
- WebBrowserContainer.cs
- MetabaseSettings.cs
- IgnorePropertiesAttribute.cs
- MethodAccessException.cs
- PackageRelationshipCollection.cs
- SR.cs
- PropertyChangeTracker.cs
- __Error.cs
- EncodingStreamWrapper.cs
- TdsParserStateObject.cs
- DummyDataSource.cs
- SafeBitVector32.cs
- Int64KeyFrameCollection.cs
- SecurityManager.cs
- Buffer.cs
- ScrollBar.cs
- DataTemplateSelector.cs
- NetNamedPipeSecurityElement.cs
- EpmAttributeNameBuilder.cs
- FlowchartDesignerCommands.cs
- MemberDescriptor.cs
- ByteKeyFrameCollection.cs
- StaticFileHandler.cs
- SchemaImporterExtensionElementCollection.cs
- MD5CryptoServiceProvider.cs
- BlobPersonalizationState.cs
- SettingsBindableAttribute.cs
- PointF.cs
- DesignerSerializationVisibilityAttribute.cs
- DependencyPropertyDescriptor.cs
- Ipv6Element.cs
- TextSchema.cs
- BlobPersonalizationState.cs
- XmlReflectionMember.cs
- translator.cs
- SchemaImporterExtensionsSection.cs
- LookupBindingPropertiesAttribute.cs
- OutputWindow.cs
- WindowsListViewItem.cs
- Workspace.cs
- FirstQueryOperator.cs
- RepeaterItem.cs
- StringWriter.cs
- UserPersonalizationStateInfo.cs
- CompositeCollection.cs
- Number.cs