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
- InternalRelationshipCollection.cs
- VirtualPathUtility.cs
- LicenseException.cs
- WebRequestModulesSection.cs
- XPathNavigatorKeyComparer.cs
- ErrorCodes.cs
- XmlNamedNodeMap.cs
- SqlMetaData.cs
- StylusPointCollection.cs
- _RequestCacheProtocol.cs
- CaseExpr.cs
- TdsParserStateObject.cs
- DataTable.cs
- AsyncSerializedWorker.cs
- ChannelServices.cs
- TabletDeviceInfo.cs
- WebPartActionVerb.cs
- OleServicesContext.cs
- ManifestResourceInfo.cs
- XmlAttribute.cs
- WindowsFormsHelpers.cs
- FontFamilyConverter.cs
- CodeIdentifiers.cs
- TextShapeableCharacters.cs
- UnsafeNativeMethods.cs
- ConcatQueryOperator.cs
- RegexNode.cs
- AspCompat.cs
- RadioButton.cs
- IntSecurity.cs
- RegisteredDisposeScript.cs
- MergeFailedEvent.cs
- RangeBaseAutomationPeer.cs
- TypeSemantics.cs
- DataGridViewControlCollection.cs
- Rectangle.cs
- Propagator.Evaluator.cs
- SimpleBitVector32.cs
- ResourcePool.cs
- PbrsForward.cs
- Stroke2.cs
- FamilyTypefaceCollection.cs
- InputScopeAttribute.cs
- InputMethod.cs
- CompositeFontInfo.cs
- ThreadStateException.cs
- DataMemberFieldConverter.cs
- SchemaCreator.cs
- AstTree.cs
- InstanceLockLostException.cs
- MarshalDirectiveException.cs
- ClientApiGenerator.cs
- ClipboardProcessor.cs
- RegexTree.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- OSFeature.cs
- ClockGroup.cs
- WebPartDisplayModeEventArgs.cs
- DefaultClaimSet.cs
- DataGridViewCellParsingEventArgs.cs
- CAGDesigner.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- GridPattern.cs
- DBPropSet.cs
- HelpHtmlBuilder.cs
- KoreanCalendar.cs
- ColorBuilder.cs
- Quad.cs
- TransactionFlowAttribute.cs
- DataFormats.cs
- SyncMethodInvoker.cs
- DNS.cs
- IItemContainerGenerator.cs
- ValidatingReaderNodeData.cs
- TreePrinter.cs
- MessageSecurityOverMsmq.cs
- CopyOfAction.cs
- SymbolEqualComparer.cs
- UriTemplateCompoundPathSegment.cs
- XhtmlBasicImageAdapter.cs
- PathFigureCollection.cs
- ToolStripStatusLabel.cs
- EmptyEnumerator.cs
- JapaneseCalendar.cs
- MetadataCache.cs
- MenuItemCollection.cs
- TakeQueryOptionExpression.cs
- SourceFileBuildProvider.cs
- RoleServiceManager.cs
- StyleSelector.cs
- NamespaceCollection.cs
- SafeFileHandle.cs
- DelimitedListTraceListener.cs
- NullEntityWrapper.cs
- RoleManagerEventArgs.cs
- CodeTypeConstructor.cs
- EnvironmentPermission.cs
- EventLogPermissionEntryCollection.cs
- TraceSection.cs
- NetworkCredential.cs