Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Triangle.cs
- ListViewCommandEventArgs.cs
- SQLRoleProvider.cs
- Math.cs
- DataViewSetting.cs
- DbConnectionPoolGroupProviderInfo.cs
- DependencyObjectValidator.cs
- ZipFileInfoCollection.cs
- BaseTemplateCodeDomTreeGenerator.cs
- NopReturnReader.cs
- FormsAuthenticationModule.cs
- ObjectPersistData.cs
- _IPv4Address.cs
- XmlObjectSerializerReadContext.cs
- CriticalExceptions.cs
- DataShape.cs
- _SafeNetHandles.cs
- TextMessageEncoder.cs
- CompleteWizardStep.cs
- StoryFragments.cs
- UriSection.cs
- Activity.cs
- InvalidateEvent.cs
- DocumentGrid.cs
- ManualResetEvent.cs
- Region.cs
- GeneralTransformGroup.cs
- _IPv6Address.cs
- DataGridViewColumnCollectionEditor.cs
- GeometryConverter.cs
- MostlySingletonList.cs
- ModelUIElement3D.cs
- WorkflowClientDeliverMessageWrapper.cs
- CroppedBitmap.cs
- EntityAdapter.cs
- WebServiceHandlerFactory.cs
- SocketAddress.cs
- ApplicationManager.cs
- RealizationDrawingContextWalker.cs
- ServerValidateEventArgs.cs
- DropAnimation.xaml.cs
- WorkflowMarkupSerializationException.cs
- MetadataSource.cs
- StructuredTypeEmitter.cs
- sqlser.cs
- PropertyValue.cs
- TypeBrowser.xaml.cs
- PageSettings.cs
- CustomSignedXml.cs
- EntityStoreSchemaFilterEntry.cs
- ChtmlTextWriter.cs
- SamlConditions.cs
- ComboBoxHelper.cs
- XslTransform.cs
- StylusButtonEventArgs.cs
- UiaCoreTypesApi.cs
- SplitterEvent.cs
- XmlSchemaAppInfo.cs
- ContentPlaceHolder.cs
- XPathSingletonIterator.cs
- Geometry3D.cs
- StringInfo.cs
- TextEditorTables.cs
- GifBitmapEncoder.cs
- MessageQueuePermissionAttribute.cs
- HttpServerUtilityWrapper.cs
- HttpClientCertificate.cs
- InnerItemCollectionView.cs
- CodeIdentifiers.cs
- CodeCompiler.cs
- EventTrigger.cs
- RelatedEnd.cs
- DirectionalLight.cs
- _Events.cs
- SiteMapDataSource.cs
- ToolBarPanel.cs
- DataGridViewRowCollection.cs
- CapabilitiesRule.cs
- DocumentPageTextView.cs
- InteropBitmapSource.cs
- TransformValueSerializer.cs
- UnsafeNativeMethods.cs
- ResolveNameEventArgs.cs
- DynamicValidator.cs
- WindowsSlider.cs
- DatasetMethodGenerator.cs
- ObjectTag.cs
- XmlAttributeHolder.cs
- PropertyChangedEventManager.cs
- LinkTarget.cs
- UpdatePanel.cs
- UIServiceHelper.cs
- InputDevice.cs
- CodeTypeDeclarationCollection.cs
- UnknownBitmapDecoder.cs
- DataServiceRequest.cs
- ScrollProperties.cs
- TableAdapterManagerGenerator.cs
- ElementUtil.cs
- TypedReference.cs