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
- HtmlTitle.cs
- MediaScriptCommandRoutedEventArgs.cs
- PrintPageEvent.cs
- RectangleF.cs
- ProfileEventArgs.cs
- ModulesEntry.cs
- MarkupObject.cs
- MobileComponentEditorPage.cs
- DeriveBytes.cs
- EventRouteFactory.cs
- SystemIPv4InterfaceProperties.cs
- CreateUserErrorEventArgs.cs
- ShaderEffect.cs
- ObjectDataSourceSelectingEventArgs.cs
- AnnotationComponentChooser.cs
- HttpApplication.cs
- RestHandlerFactory.cs
- ThreadAttributes.cs
- ApplySecurityAndSendAsyncResult.cs
- uribuilder.cs
- ToolTip.cs
- DecoderReplacementFallback.cs
- XmlNamespaceManager.cs
- Accessors.cs
- Shape.cs
- ContentElement.cs
- UnsafeNativeMethods.cs
- ToolStripButton.cs
- TimelineGroup.cs
- XmlCodeExporter.cs
- ApplicationInfo.cs
- PeerTransportElement.cs
- StorageTypeMapping.cs
- ValidationError.cs
- WindowsStatic.cs
- ToolStrip.cs
- ArgumentValueSerializer.cs
- WebReferencesBuildProvider.cs
- AsyncOperationManager.cs
- StreamWriter.cs
- RegexInterpreter.cs
- WebContext.cs
- SharedPersonalizationStateInfo.cs
- QuotedPrintableStream.cs
- RegisteredDisposeScript.cs
- TabletDeviceInfo.cs
- GPStream.cs
- HTTPNotFoundHandler.cs
- CopyAttributesAction.cs
- LambdaSerializationException.cs
- PointKeyFrameCollection.cs
- PartialClassGenerationTask.cs
- SQLGuidStorage.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- PaintValueEventArgs.cs
- InputProcessorProfilesLoader.cs
- EnumBuilder.cs
- ArrayElementGridEntry.cs
- TextContainerChangedEventArgs.cs
- PackUriHelper.cs
- XsltException.cs
- HttpResponseHeader.cs
- WebChannelFactory.cs
- Util.cs
- unitconverter.cs
- sqlpipe.cs
- DataViewManager.cs
- CustomExpressionEventArgs.cs
- SQLBinary.cs
- FieldToken.cs
- DummyDataSource.cs
- SubclassTypeValidator.cs
- KeyedHashAlgorithm.cs
- TextViewSelectionProcessor.cs
- SortAction.cs
- MenuItem.cs
- SHA512Managed.cs
- CertificateElement.cs
- Substitution.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- TextBoxAutomationPeer.cs
- TextSelectionProcessor.cs
- AtomEntry.cs
- InstalledFontCollection.cs
- ConfigXmlReader.cs
- DataGridBoolColumn.cs
- SecurityState.cs
- x509store.cs
- CodeDirectoryCompiler.cs
- DbXmlEnabledProviderManifest.cs
- NameService.cs
- ValueUtilsSmi.cs
- BitStack.cs
- _HelperAsyncResults.cs
- UnaryNode.cs
- CommonXSendMessage.cs
- SoapParser.cs
- HighlightVisual.cs
- DataGridViewEditingControlShowingEventArgs.cs
- Label.cs