Skip to main content

pito_jobs/
lib.rs

1mod env;
2mod fit;
3mod host;
4mod job;
5mod live;
6pub mod op;
7mod rate;
8mod record;
9mod util;
10
11pub use job::Job;
12pub use live::{Beat, Handle, Pacing, Span, Surface, apps_dir, live, read_apps};
13pub use record::{Pgpu, Progress, Record, read_dir};
14
15use env::Settings;
16use util::Clock;
17
18pub fn start(tool: impl AsRef<str>, app: Option<&str>, label: impl AsRef<str>) -> Job {
19    job::start_with(
20        tool.as_ref(),
21        app,
22        label.as_ref(),
23        Settings::from_env(),
24        Clock::system(),
25    )
26}
27
28#[cfg(test)]
29mod tests;