When you run a query in both SQL Server 2017 RTM and Cumulative Update 14 (CU 14) of SQL Server 2017, you notice that the SQL Common Language Runtime (SQLCLR) function takes a longer time to run the query in CU 14 than in RTM version of SQL Server 2017.
The UpdateCpuUsage() function isexpensive and it is used to collect CPU utilization when CLR function is executed. After you apply this fix, we onlycollect it when profiling is ON.
This issue is fixed in the following cumulative update for SQL Server:
About cumulative updates for SQL Server:
Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server: