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
- TraceContext.cs
- CommandExpr.cs
- BlockCollection.cs
- PolicyReader.cs
- PropertyContainer.cs
- AppDomainProtocolHandler.cs
- DataSourceControlBuilder.cs
- RoutedEventValueSerializer.cs
- Label.cs
- PrimitiveXmlSerializers.cs
- AddressingProperty.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- BitmapImage.cs
- SiteMapNodeItem.cs
- SafeSecurityHandles.cs
- HttpStreamXmlDictionaryWriter.cs
- RegionIterator.cs
- hwndwrapper.cs
- SqlInternalConnectionTds.cs
- DiffuseMaterial.cs
- SapiGrammar.cs
- ForeignConstraint.cs
- _SpnDictionary.cs
- TrustLevelCollection.cs
- EntryIndex.cs
- CalendarItem.cs
- altserialization.cs
- SqlProviderUtilities.cs
- Membership.cs
- WmfPlaceableFileHeader.cs
- TypeForwardedToAttribute.cs
- ColumnMapCopier.cs
- BitmapImage.cs
- FileSystemEventArgs.cs
- ACL.cs
- DeviceFilterEditorDialog.cs
- X509Certificate.cs
- StylusPointPropertyInfo.cs
- SHA1.cs
- LocalFileSettingsProvider.cs
- StrokeCollection2.cs
- Timer.cs
- InternalConfirm.cs
- Journaling.cs
- ParameterBuilder.cs
- XDRSchema.cs
- DocumentOrderComparer.cs
- ConfigXmlComment.cs
- EmitterCache.cs
- RestHandler.cs
- XsltInput.cs
- CustomErrorsSectionWrapper.cs
- InstanceCollisionException.cs
- Icon.cs
- DataGridViewComboBoxColumn.cs
- HTMLTagNameToTypeMapper.cs
- NullableLongAverageAggregationOperator.cs
- NativeObjectSecurity.cs
- Operator.cs
- MissingMethodException.cs
- DeviceContext2.cs
- InputScope.cs
- CqlWriter.cs
- CssTextWriter.cs
- RowToFieldTransformer.cs
- AuthenticatingEventArgs.cs
- LayoutEvent.cs
- COSERVERINFO.cs
- Funcletizer.cs
- OracleRowUpdatingEventArgs.cs
- XmlSchemaGroupRef.cs
- PropertyTabChangedEvent.cs
- KeyValuePair.cs
- QilTernary.cs
- DataGridRowClipboardEventArgs.cs
- Literal.cs
- NetworkInformationPermission.cs
- FormsAuthenticationConfiguration.cs
- TextRangeEditLists.cs
- SapiRecoInterop.cs
- DBConnectionString.cs
- SurrogateSelector.cs
- ExceptionAggregator.cs
- DrawingContextWalker.cs
- AlternateViewCollection.cs
- RequestSecurityTokenForGetBrowserToken.cs
- SafeMILHandle.cs
- EdmComplexPropertyAttribute.cs
- HtmlHead.cs
- ServerValidateEventArgs.cs
- HttpDigestClientCredential.cs
- DescriptionAttribute.cs
- HandlerWithFactory.cs
- __TransparentProxy.cs
- WCFServiceClientProxyGenerator.cs
- XhtmlTextWriter.cs
- ListViewPagedDataSource.cs
- SafeRightsManagementEnvironmentHandle.cs
- ApplicationId.cs
- ResXFileRef.cs