mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 23:17:02 +01:00
9 lines
2.5 KiB
HTML
9 lines
2.5 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../"><link rel="stylesheet" href="dmdoc.css"><title>/datum/log_viewer - Space Station 13</title></head><body><header><a href="index.html">Space Station 13</a> - <a href="index.html#modules">Modules</a> - <a href="index.html#types">Types</a> — <a href="datum/log_viewer.html#proc">Proc Details</a></header><main><h1>log_viewer <aside>/<a href="datum.html">datum</a>/<a href="datum/log_viewer.html">log_viewer</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/edee60476d21ee840643bd1abe7f6003a8c65773/code/datums/log_viewer.dm#L10"><img src="git.png" width="16" height="16" title="code/datums/log_viewer.dm 10"></a></h1><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/log_viewer.html#proc/get_earliest_log_index">get_earliest_log_index</a></th><td></td></tr><tr><th><a href="datum/log_viewer.html#proc/get_latest_log_index">get_latest_log_index</a></th><td></td></tr></table><h2 id="proc">Proc Details</h2><h3 id="proc/get_earliest_log_index"><aside class="declaration">proc </aside>get_earliest_log_index<aside>(/list/logs) <a href="https://github.com/ParadiseSS13/Paradise/blob/edee60476d21ee840643bd1abe7f6003a8c65773/code/datums/log_viewer.dm#L64"><img src="git.png" width="16" height="16" title="code/datums/log_viewer.dm 64"></a></aside></h3><ul>
|
|
<li>Binary search like implementation to find the earliest log</li>
|
|
<li>Returns the index of the earliest log using the time_from value for the given list of logs.</li>
|
|
<li>It will return 0 if no log after time_from is found</li>
|
|
</ul><h3 id="proc/get_latest_log_index"><aside class="declaration">proc </aside>get_latest_log_index<aside>(/list/logs) <a href="https://github.com/ParadiseSS13/Paradise/blob/edee60476d21ee840643bd1abe7f6003a8c65773/code/datums/log_viewer.dm#L87"><img src="git.png" width="16" height="16" title="code/datums/log_viewer.dm 87"></a></aside></h3><ul>
|
|
<li>Binary search like implementation to find the latest log</li>
|
|
<li>Returns the index of the latest log using the time_to value (1 second is added to prevent rounding weirdness) for the given list of logs.</li>
|
|
<li>It will return 0 if no log before time_to + 10 is found</li>
|
|
</ul></main><footer>paradise.dme <a href="https://github.com/ParadiseSS13/Paradise/tree/edee60476d21ee840643bd1abe7f6003a8c65773">edee604</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.11.0</a></footer></body></html> |