Code:
/ FX-1434 / FX-1434 / 1.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
- BitmapCodecInfoInternal.cs
- HttpCapabilitiesSectionHandler.cs
- OutputScopeManager.cs
- TagPrefixAttribute.cs
- PeerCollaborationPermission.cs
- MapPathBasedVirtualPathProvider.cs
- HTMLTagNameToTypeMapper.cs
- LambdaCompiler.Lambda.cs
- FrameworkElementAutomationPeer.cs
- DecoratedNameAttribute.cs
- HttpDebugHandler.cs
- SafeNativeMethods.cs
- ScrollEvent.cs
- RoleService.cs
- CodeGroup.cs
- SimpleHandlerFactory.cs
- DispatcherHooks.cs
- Configuration.cs
- HtmlInputText.cs
- FileUpload.cs
- ApplyTemplatesAction.cs
- infer.cs
- TypeContext.cs
- TextStore.cs
- XmlIgnoreAttribute.cs
- ActiveDocumentEvent.cs
- UnaryNode.cs
- Menu.cs
- XsltException.cs
- MonthChangedEventArgs.cs
- RequestCacheValidator.cs
- BoolExpr.cs
- EtwTrace.cs
- SqlFactory.cs
- SqlCachedBuffer.cs
- DrawingImage.cs
- ResourceAssociationTypeEnd.cs
- Rect3DValueSerializer.cs
- Array.cs
- HttpRuntimeSection.cs
- ValueExpressions.cs
- CqlGenerator.cs
- DocumentPageViewAutomationPeer.cs
- Misc.cs
- GenericTextProperties.cs
- BoolExpression.cs
- SettingsPropertyIsReadOnlyException.cs
- UnSafeCharBuffer.cs
- Condition.cs
- DrawingBrush.cs
- NonBatchDirectoryCompiler.cs
- HttpProxyTransportBindingElement.cs
- CLSCompliantAttribute.cs
- SparseMemoryStream.cs
- AmbiguousMatchException.cs
- UserPersonalizationStateInfo.cs
- RootBrowserWindow.cs
- ThreadStaticAttribute.cs
- MbpInfo.cs
- AccessKeyManager.cs
- TreeNodeCollection.cs
- parserscommon.cs
- ColumnMapVisitor.cs
- TaskFormBase.cs
- ToolStripButton.cs
- PageBreakRecord.cs
- CheckBoxField.cs
- PriorityChain.cs
- MailHeaderInfo.cs
- Descriptor.cs
- Hex.cs
- FormatConvertedBitmap.cs
- CodeTypeReferenceExpression.cs
- CompatibleIComparer.cs
- ProxyElement.cs
- ReferencedAssembly.cs
- BitConverter.cs
- Point3DValueSerializer.cs
- ObjectManager.cs
- InfoCardProofToken.cs
- XmlSignatureProperties.cs
- ReceiveActivityValidator.cs
- CellParaClient.cs
- XmlSchemaNotation.cs
- Rect.cs
- SQLGuidStorage.cs
- TemplateBuilder.cs
- NullExtension.cs
- ColumnMapTranslator.cs
- GeometryValueSerializer.cs
- ScaleTransform.cs
- WebPartEditorApplyVerb.cs
- ArgumentException.cs
- FormViewCommandEventArgs.cs
- XmlSerializerNamespaces.cs
- ContractTypeNameElement.cs
- WebBaseEventKeyComparer.cs
- MenuEventArgs.cs
- Encoding.cs
- ReservationCollection.cs