Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OletxEnlistment.cs
- DateTimeConverter2.cs
- TreeViewImageGenerator.cs
- DataControlLinkButton.cs
- FixedSOMLineRanges.cs
- PenContexts.cs
- SafeFindHandle.cs
- TableProviderWrapper.cs
- FrameworkContextData.cs
- ActivityExecutor.cs
- XMLSyntaxException.cs
- EntityDataSourceViewSchema.cs
- OuterGlowBitmapEffect.cs
- SoapProcessingBehavior.cs
- HttpRawResponse.cs
- BoolExpression.cs
- ReadWriteSpinLock.cs
- Buffer.cs
- Trigger.cs
- PictureBoxDesigner.cs
- DocumentsTrace.cs
- MediaContextNotificationWindow.cs
- LogLogRecordHeader.cs
- DBAsyncResult.cs
- GraphicsState.cs
- QilUnary.cs
- EllipticalNodeOperations.cs
- Evidence.cs
- ProviderSettings.cs
- Preprocessor.cs
- Compiler.cs
- PrintPreviewControl.cs
- ObjectStorage.cs
- UserControlBuildProvider.cs
- BamlStream.cs
- Scene3D.cs
- ParserExtension.cs
- URLIdentityPermission.cs
- SqlInternalConnectionSmi.cs
- ApplicationBuildProvider.cs
- Point.cs
- Parser.cs
- SecurityDescriptor.cs
- ImpersonationContext.cs
- ReturnValue.cs
- EntryIndex.cs
- XmlNotation.cs
- propertytag.cs
- HostingPreferredMapPath.cs
- BigInt.cs
- SafeNativeMethods.cs
- TreeView.cs
- GridViewItemAutomationPeer.cs
- AttributeCollection.cs
- StickyNoteContentControl.cs
- AssemblyCache.cs
- CheckBoxPopupAdapter.cs
- WebEventTraceProvider.cs
- ResourceReader.cs
- PasswordDeriveBytes.cs
- TableRow.cs
- XpsInterleavingPolicy.cs
- XPathAxisIterator.cs
- DocumentPageHost.cs
- StretchValidation.cs
- BuildProviderAppliesToAttribute.cs
- AppDomain.cs
- ChildChangedEventArgs.cs
- Variable.cs
- SessionState.cs
- MatrixAnimationUsingPath.cs
- ISAPIApplicationHost.cs
- FormViewInsertEventArgs.cs
- ListDictionaryInternal.cs
- QueryableDataSource.cs
- TableLayoutPanelBehavior.cs
- TextFormatterContext.cs
- XmlStringTable.cs
- CallSiteBinder.cs
- BitConverter.cs
- UIElementParaClient.cs
- TypeUtil.cs
- externdll.cs
- RuleInfoComparer.cs
- Int16AnimationBase.cs
- ContextMarshalException.cs
- ObjectStorage.cs
- LedgerEntry.cs
- XslException.cs
- ObjectDataSourceSelectingEventArgs.cs
- XamlClipboardData.cs
- AsymmetricSignatureFormatter.cs
- CachedPathData.cs
- Panel.cs
- CompleteWizardStep.cs
- BindingCompleteEventArgs.cs
- EventLogConfiguration.cs
- AsyncOperation.cs
- PassportAuthenticationEventArgs.cs
- SaveFileDialog.cs