diff options
Diffstat (limited to 'utils/timeutils.html')
| -rw-r--r-- | utils/timeutils.html | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/utils/timeutils.html b/utils/timeutils.html index 3f5a73e..fc44e97 100644 --- a/utils/timeutils.html +++ b/utils/timeutils.html | |||
| @@ -152,7 +152,17 @@ | |||
| 152 | <dl class="function"> | 152 | <dl class="function"> |
| 153 | <dt id="eventmq.utils.timeutils.monotonic"> | 153 | <dt id="eventmq.utils.timeutils.monotonic"> |
| 154 | <code class="descclassname">eventmq.utils.timeutils.</code><code class="descname">monotonic</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#eventmq.utils.timeutils.monotonic" title="Permalink to this definition">¶</a></dt> | 154 | <code class="descclassname">eventmq.utils.timeutils.</code><code class="descname">monotonic</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#eventmq.utils.timeutils.monotonic" title="Permalink to this definition">¶</a></dt> |
| 155 | <dd></dd></dl> | 155 | <dd><p>Returns (float) seconds since boot, or something close to it. This value |
| 156 | will never count down so it’s useful for cases where DST would mess up | ||
| 157 | time.time() arithmetic (e.g. heartbeats).</p> | ||
| 158 | </dd></dl> | ||
| 159 | |||
| 160 | <dl class="function"> | ||
| 161 | <dt id="eventmq.utils.timeutils.seconds_until"> | ||
| 162 | <code class="descclassname">eventmq.utils.timeutils.</code><code class="descname">seconds_until</code><span class="sig-paren">(</span><em>ts</em><span class="sig-paren">)</span><a class="headerlink" href="#eventmq.utils.timeutils.seconds_until" title="Permalink to this definition">¶</a></dt> | ||
| 163 | <dd><p>Calculates the number of seconds until <cite>ts</cite> by subtracting it from | ||
| 164 | time.time()</p> | ||
| 165 | </dd></dl> | ||
| 156 | 166 | ||
| 157 | <dl class="function"> | 167 | <dl class="function"> |
| 158 | <dt id="eventmq.utils.timeutils.timestamp"> | 168 | <dt id="eventmq.utils.timeutils.timestamp"> |