Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // //----------------------------------------------------------------------------- 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StringWriter.cs
- JpegBitmapDecoder.cs
- HeaderCollection.cs
- RichTextBoxAutomationPeer.cs
- SaveFileDialog.cs
- DbProviderSpecificTypePropertyAttribute.cs
- RedistVersionInfo.cs
- TraceHwndHost.cs
- SvcMapFile.cs
- DataGridRowDetailsEventArgs.cs
- MemberRelationshipService.cs
- SqlProcedureAttribute.cs
- DataGridViewRowCollection.cs
- SqlNodeTypeOperators.cs
- Catch.cs
- InkCanvasInnerCanvas.cs
- UrlAuthorizationModule.cs
- XhtmlTextWriter.cs
- LambdaCompiler.ControlFlow.cs
- NameTable.cs
- PointCollectionConverter.cs
- RepeatBehavior.cs
- XXXInfos.cs
- METAHEADER.cs
- RegexTree.cs
- ContentPathSegment.cs
- ResourceDictionary.cs
- SQLMoneyStorage.cs
- HtmlInputRadioButton.cs
- ToolTipAutomationPeer.cs
- SmtpReplyReader.cs
- RuntimeVariablesExpression.cs
- GroupByExpressionRewriter.cs
- EpmCustomContentSerializer.cs
- DependencyPropertyConverter.cs
- WebHttpDispatchOperationSelectorData.cs
- FunctionDetailsReader.cs
- PageParser.cs
- OrderedDictionary.cs
- XmlDataLoader.cs
- FactoryId.cs
- TextServicesCompartment.cs
- WindowManager.cs
- DomNameTable.cs
- TargetConverter.cs
- ReaderWriterLock.cs
- HttpModuleAction.cs
- DocumentScope.cs
- SafeNativeMethods.cs
- WebControlParameterProxy.cs
- DocumentStream.cs
- BuiltInExpr.cs
- _AutoWebProxyScriptHelper.cs
- RelationshipDetailsRow.cs
- AppDomainResourcePerfCounters.cs
- CachedTypeface.cs
- HelpProvider.cs
- MessageHeaderAttribute.cs
- ExpandCollapseProviderWrapper.cs
- SerialPinChanges.cs
- GeneralTransform3DTo2D.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- MarkupWriter.cs
- InstanceCreationEditor.cs
- ColorEditor.cs
- WebPartCatalogAddVerb.cs
- SettingsBindableAttribute.cs
- TraceHandlerErrorFormatter.cs
- _UriSyntax.cs
- DataSource.cs
- DataAdapter.cs
- PersonalizationStateInfoCollection.cs
- TextBlock.cs
- HashAlgorithm.cs
- KoreanLunisolarCalendar.cs
- MethodAccessException.cs
- LocalFileSettingsProvider.cs
- DocumentXPathNavigator.cs
- OdbcConnection.cs
- FileLevelControlBuilderAttribute.cs
- User.cs
- QilInvoke.cs
- SequenceNumber.cs
- StylusCollection.cs
- ObjectDesignerDataSourceView.cs
- DNS.cs
- UIHelper.cs
- RowToFieldTransformer.cs
- FileUtil.cs
- ButtonField.cs
- Fault.cs
- MultilineStringConverter.cs
- CompoundFileDeflateTransform.cs
- WebPartPersonalization.cs
- WindowsListViewItem.cs
- PeerEndPoint.cs
- DataReaderContainer.cs
- FormsAuthenticationCredentials.cs
- RefreshInfo.cs
- WebPartDescription.cs