mirror of
https://github.com/RGBCube/ZTerm
synced 2025-07-29 08:57:46 +00:00
Adjust some stuff
This commit is contained in:
parent
acc8f529ef
commit
cc538aa18a
2 changed files with 15 additions and 13 deletions
|
@ -1,11 +1,14 @@
|
|||
const Spinner = @import("src/Spinner.zig");
|
||||
|
||||
|
||||
const time = @import("std").time;
|
||||
const std = @import("std");
|
||||
const time = std.time;
|
||||
|
||||
pub fn main() !void {
|
||||
var sp = Spinner.new(null, null, "Loading...");
|
||||
var sp = Spinner.new(100 * time.ns_per_ms, null, "Loading...");
|
||||
try sp.start();
|
||||
|
||||
time.sleep(5 * time.ns_per_s);
|
||||
|
||||
sp.stop();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue