Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- PathFigureCollectionValueSerializer.cs
- ToolStripDropTargetManager.cs
- Int64Converter.cs
- XmlQualifiedNameTest.cs
- KeyInstance.cs
- SpellerError.cs
- SqlExpressionNullability.cs
- XmlNamespaceDeclarationsAttribute.cs
- MetadataPropertyCollection.cs
- PersonalizationProviderHelper.cs
- ActionNotSupportedException.cs
- FormsAuthenticationModule.cs
- Point3DValueSerializer.cs
- DrawingBrush.cs
- DPCustomTypeDescriptor.cs
- ReadOnlyDictionary.cs
- ExtenderProvidedPropertyAttribute.cs
- CryptographicAttribute.cs
- XsltSettings.cs
- ToolStripCollectionEditor.cs
- PropertyExpression.cs
- EnvelopedPkcs7.cs
- GroupPartitionExpr.cs
- CompiledRegexRunner.cs
- ListViewGroupConverter.cs
- MetadataPropertyvalue.cs
- XmlBaseWriter.cs
- MarshalDirectiveException.cs
- PagerSettings.cs
- RightNameExpirationInfoPair.cs
- CleanUpVirtualizedItemEventArgs.cs
- SchemaElementLookUpTable.cs
- FixedHyperLink.cs
- EdmComplexPropertyAttribute.cs
- ProgressChangedEventArgs.cs
- System.Data_BID.cs
- ContainerUIElement3D.cs
- DrawingGroup.cs
- CodeEntryPointMethod.cs
- TileBrush.cs
- HyperLinkField.cs
- SqlDataSource.cs
- DefaultMemberAttribute.cs
- StateFinalizationActivity.cs
- StoryFragments.cs
- StaticFileHandler.cs
- Collection.cs
- sqlcontext.cs
- DSASignatureDeformatter.cs
- XMLSyntaxException.cs
- Size.cs
- EastAsianLunisolarCalendar.cs
- ToolStripLabel.cs
- ReadOnlyDataSourceView.cs
- FileSystemEventArgs.cs
- OleDbStruct.cs
- BitmapEffect.cs
- ResourceExpressionBuilder.cs
- ServiceAppDomainAssociationProvider.cs
- StringToken.cs
- CheckableControlBaseAdapter.cs
- ComplusTypeValidator.cs
- MachineKeyConverter.cs
- ApplicationId.cs
- RequestCachePolicyConverter.cs
- XmlSchemaValidationException.cs
- FlowDocumentScrollViewer.cs
- PropertyGrid.cs
- DisplayNameAttribute.cs
- ResourcePermissionBase.cs
- XsltCompileContext.cs
- Int32CAMarshaler.cs
- TableStyle.cs
- XmlAggregates.cs
- DrawListViewSubItemEventArgs.cs
- AliasGenerator.cs
- UnknownWrapper.cs
- UIInitializationException.cs
- DataContract.cs
- XPathSingletonIterator.cs
- WorkItem.cs
- DataGridPageChangedEventArgs.cs
- NameValueSectionHandler.cs
- BaseResourcesBuildProvider.cs
- Pens.cs
- httpserverutility.cs
- Win32KeyboardDevice.cs
- IndependentlyAnimatedPropertyMetadata.cs
- NumericPagerField.cs
- QuaternionValueSerializer.cs
- ActivityPreviewDesigner.cs
- FilteredXmlReader.cs
- MSG.cs
- HttpRuntime.cs
- StringComparer.cs
- RIPEMD160Managed.cs
- XmlWriterDelegator.cs
- SafeBitVector32.cs
- MappingModelBuildProvider.cs
- ListControlDataBindingHandler.cs