Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ProxyFragment.cs
- SHA256.cs
- BuilderPropertyEntry.cs
- TrustDriver.cs
- HttpConfigurationContext.cs
- Point3DCollection.cs
- HWStack.cs
- Cursors.cs
- OutputCacheSettings.cs
- PassportAuthentication.cs
- DefaultValueTypeConverter.cs
- HiddenFieldPageStatePersister.cs
- NativeObjectSecurity.cs
- RepeaterItemEventArgs.cs
- ITreeGenerator.cs
- ListItemsCollectionEditor.cs
- DbConnectionPoolOptions.cs
- PasswordDeriveBytes.cs
- CompositeActivityValidator.cs
- HuffCodec.cs
- GPPOINT.cs
- ConstantExpression.cs
- WebPartHelpVerb.cs
- InvokeWebServiceDesigner.cs
- OleDbParameterCollection.cs
- WmlPanelAdapter.cs
- TextDecorationCollection.cs
- webeventbuffer.cs
- LoginName.cs
- TemplateColumn.cs
- BasicExpandProvider.cs
- SvcMapFileLoader.cs
- Model3DGroup.cs
- TemplateControlParser.cs
- NamespaceEmitter.cs
- StyleTypedPropertyAttribute.cs
- TransactionFlowOption.cs
- ScriptReference.cs
- AnimationClock.cs
- ReadOnlyCollection.cs
- DynamicQueryableWrapper.cs
- SchemaImporterExtensionElementCollection.cs
- DbMetaDataColumnNames.cs
- DiffuseMaterial.cs
- TypeConverterHelper.cs
- SoapReflectionImporter.cs
- InfiniteTimeSpanConverter.cs
- ListViewCancelEventArgs.cs
- HttpListenerElement.cs
- UrlParameterReader.cs
- BulletChrome.cs
- ExpandCollapseProviderWrapper.cs
- SqlUnionizer.cs
- SourceFileBuildProvider.cs
- FreeFormDragDropManager.cs
- WindowInteractionStateTracker.cs
- SecurityContext.cs
- SqlAliaser.cs
- ProfileGroupSettingsCollection.cs
- DataGridTableCollection.cs
- RelationshipDetailsCollection.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- BitmapEffect.cs
- CommandBinding.cs
- ApplicationInfo.cs
- ObjectDataSource.cs
- FullTrustAssemblyCollection.cs
- DBPropSet.cs
- BaseTemplateBuildProvider.cs
- DotExpr.cs
- NextPreviousPagerField.cs
- DictionaryBase.cs
- TdsParserSessionPool.cs
- LoadWorkflowCommand.cs
- ProviderConnectionPointCollection.cs
- SystemNetworkInterface.cs
- PropertyGroupDescription.cs
- DispatcherHookEventArgs.cs
- TypedReference.cs
- SimplePropertyEntry.cs
- ACL.cs
- Int64.cs
- MarkupCompiler.cs
- StubHelpers.cs
- SimpleType.cs
- SoapReflector.cs
- FeatureManager.cs
- StreamingContext.cs
- XmlNodeReader.cs
- MouseBinding.cs
- ExceptionAggregator.cs
- OptimizedTemplateContentHelper.cs
- CellConstant.cs
- Types.cs
- __Error.cs
- XmlEntity.cs
- TemplateBuilder.cs
- BindingExpressionUncommonField.cs
- ListenerSessionConnection.cs
- WpfGeneratedKnownProperties.cs