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
- UserUseLicenseDictionaryLoader.cs
- RunWorkerCompletedEventArgs.cs
- TimeoutStream.cs
- SafeRegistryHandle.cs
- GroupJoinQueryOperator.cs
- DropShadowEffect.cs
- ObjectCloneHelper.cs
- PointCollectionConverter.cs
- CompressedStack.cs
- ListBoxItem.cs
- CustomAttribute.cs
- VersionedStream.cs
- UntypedNullExpression.cs
- XXXOnTypeBuilderInstantiation.cs
- ToolStripContentPanelRenderEventArgs.cs
- TrustManager.cs
- FixedHyperLink.cs
- SearchForVirtualItemEventArgs.cs
- StubHelpers.cs
- XhtmlConformanceSection.cs
- XmlReaderSettings.cs
- StatusBarPanelClickEvent.cs
- DataAdapter.cs
- TableChangeProcessor.cs
- DotExpr.cs
- XPathSelfQuery.cs
- WebExceptionStatus.cs
- ImageInfo.cs
- DecoderReplacementFallback.cs
- RegexWorker.cs
- PathData.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- FilteredReadOnlyMetadataCollection.cs
- PerfProviderCollection.cs
- ImageMetadata.cs
- PriorityItem.cs
- DataSourceCacheDurationConverter.cs
- TabControl.cs
- AttributeCollection.cs
- StaticSiteMapProvider.cs
- TreeViewHitTestInfo.cs
- MatchAttribute.cs
- PolicyManager.cs
- CachingHintValidation.cs
- SmtpReplyReader.cs
- StateBag.cs
- MailSettingsSection.cs
- InvariantComparer.cs
- IndicFontClient.cs
- AudioBase.cs
- ObjectNavigationPropertyMapping.cs
- SmiEventSink.cs
- MediaPlayer.cs
- WriteStateInfoBase.cs
- MenuBindingsEditorForm.cs
- TabItemWrapperAutomationPeer.cs
- OperationCanceledException.cs
- SpellerHighlightLayer.cs
- PenThread.cs
- PermissionSetEnumerator.cs
- EncoderParameter.cs
- PTProvider.cs
- ContentPropertyAttribute.cs
- DataGridAutoFormat.cs
- _HTTPDateParse.cs
- Rect.cs
- BinaryFormatterSinks.cs
- BuiltInPermissionSets.cs
- DetailsViewInsertEventArgs.cs
- MaskedTextBoxDesigner.cs
- ActivitySurrogate.cs
- TaiwanLunisolarCalendar.cs
- HMAC.cs
- HttpContext.cs
- VariableBinder.cs
- ApplyTemplatesAction.cs
- PlanCompiler.cs
- WebUtil.cs
- DataGridViewLinkCell.cs
- CreateRefExpr.cs
- OpenTypeCommon.cs
- InertiaTranslationBehavior.cs
- KnownBoxes.cs
- SqlDataRecord.cs
- UrlPath.cs
- LinearKeyFrames.cs
- Util.cs
- Point.cs
- BitmapImage.cs
- FormatSettings.cs
- sqlstateclientmanager.cs
- DataControlImageButton.cs
- HtmlInputText.cs
- ApplicationSecurityManager.cs
- Semaphore.cs
- XomlCompilerError.cs
- InfoCardCryptoHelper.cs
- GeneralTransform3DGroup.cs
- SmiEventSink.cs
- OrderedDictionary.cs