New rule S6561: Do not use DateTime.Now
for benchmarking or timing operations
#7083
Labels
Area: C#
C# rules related issues.
Area: VB.NET
VB.NET rules related issues.
Type: New Rule
Implementation for a rule that HAS been specified.
Milestone
Implement new rule S6561: Do not use DateTime.Now for benchmarking or timing operations.
This rule should raise when
Now
orUtcNow
properties are called multiple times in the same method and they are used later in arithmetic operations.The text was updated successfully, but these errors were encountered: