You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.html
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2052,16 +2052,16 @@
2052
2052
</code></pre></div>
2053
2053
2054
2054
<div><h2id="profile"><ahref="#profile" name="profile">#</a>Profile</h2><div><h3id="basic">Basic</h3><pre><codeclass="python language-python hljs"><spanclass="hljs-keyword">from</span> time <spanclass="hljs-keyword">import</span> time
2055
-
start_time = time() <spanclass="hljs-comment"># Seconds since the Epoch.</span>
2055
+
start_time = time() <spanclass="hljs-comment"># Seconds since the Epoch.</span>
2056
2056
...
2057
2057
duration = time() - start_time
2058
2058
</code></pre></div></div>
2059
2059
2060
2060
2061
-
<div><h3id="highperformance">High Performance</h3><pre><codeclass="python language-python hljs"><spanclass="hljs-keyword">from</span> time <spanclass="hljs-keyword">import</span> perf_counter<spanclass="hljs-keyword">as</span> pc
2062
-
start_time = pc() <spanclass="hljs-comment"># Seconds since restart.</span>
2061
+
<div><h3id="highperformance">High Performance</h3><pre><codeclass="python language-python hljs"><spanclass="hljs-keyword">from</span> time <spanclass="hljs-keyword">import</span> perf_counter
2062
+
start_time = perf_counter()<spanclass="hljs-comment"># Seconds since restart.</span>
2063
2063
...
2064
-
duration = pc() - start_time
2064
+
duration = perf_counter() - start_time
2065
2065
</code></pre></div>
2066
2066
2067
2067
<div><h3id="timingasnippet">Timing a Snippet</h3><pre><codeclass="python language-python hljs"><spanclass="hljs-meta">>>> </span><spanclass="hljs-keyword">from</span> timeit <spanclass="hljs-keyword">import</span> timeit
0 commit comments