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
- Style.cs
- ThousandthOfEmRealDoubles.cs
- DisplayNameAttribute.cs
- ProcessThreadDesigner.cs
- GlyphInfoList.cs
- OleDbRowUpdatingEvent.cs
- _NegoState.cs
- ElementMarkupObject.cs
- DocumentDesigner.cs
- BinaryFormatter.cs
- SchemaEntity.cs
- DataGridViewCheckBoxColumn.cs
- SoapFault.cs
- ReadOnlyCollectionBase.cs
- SchemaInfo.cs
- ValidatorUtils.cs
- HttpPostedFileWrapper.cs
- CLRBindingWorker.cs
- assemblycache.cs
- HtmlElementEventArgs.cs
- TraceContext.cs
- SponsorHelper.cs
- ExtenderProvidedPropertyAttribute.cs
- DetailsViewDeleteEventArgs.cs
- Track.cs
- ObjectComplexPropertyMapping.cs
- MDIClient.cs
- GroupByExpressionRewriter.cs
- AssemblyCache.cs
- XmlDocumentSerializer.cs
- NullNotAllowedCollection.cs
- Converter.cs
- OverrideMode.cs
- RefreshPropertiesAttribute.cs
- HtmlUtf8RawTextWriter.cs
- ProfessionalColorTable.cs
- webbrowsersite.cs
- ChildTable.cs
- WindowsStatic.cs
- XPathSingletonIterator.cs
- HttpResponse.cs
- DtrList.cs
- EnumMemberAttribute.cs
- XamlTypeMapper.cs
- XamlBrushSerializer.cs
- XmlWriterDelegator.cs
- ValueUtilsSmi.cs
- ProtocolViolationException.cs
- StructuredType.cs
- ConfigurationStrings.cs
- Dictionary.cs
- FillErrorEventArgs.cs
- EntityParameterCollection.cs
- CheckBoxRenderer.cs
- assertwrapper.cs
- ConnectionStringSettingsCollection.cs
- DesignerTransaction.cs
- ValidationRule.cs
- IWorkflowDebuggerService.cs
- ObjectPersistData.cs
- EntityDataSourceDesigner.cs
- XmlProcessingInstruction.cs
- XmlNotation.cs
- Propagator.JoinPropagator.cs
- ComEventsInfo.cs
- VarRemapper.cs
- ListViewGroup.cs
- AttributeCollection.cs
- ConfigurationPropertyCollection.cs
- ProxyWebPartConnectionCollection.cs
- DWriteFactory.cs
- LinqDataSourceDisposeEventArgs.cs
- ContainerAction.cs
- Logging.cs
- EditableRegion.cs
- DataTable.cs
- TraceHandlerErrorFormatter.cs
- QueryNode.cs
- TextEffectCollection.cs
- RestHandler.cs
- PageBuildProvider.cs
- RoleGroup.cs
- MemberJoinTreeNode.cs
- LeaseManager.cs
- EnumBuilder.cs
- ListMarkerSourceInfo.cs
- EncryptedKeyIdentifierClause.cs
- IPHostEntry.cs
- ProfileSection.cs
- ZoneButton.cs
- Pen.cs
- AdPostCacheSubstitution.cs
- XmlBoundElement.cs
- StructuredTypeInfo.cs
- FirstMatchCodeGroup.cs
- TransactedReceiveScope.cs
- PKCS1MaskGenerationMethod.cs
- PropertyDescriptorCollection.cs
- ThemeableAttribute.cs
- SmiTypedGetterSetter.cs