1
Fork 0
mirror of https://github.com/RGBCube/ZTerm synced 2025-07-29 08:57:46 +00:00

Adjust some stuff

This commit is contained in:
RGBCube 2023-05-17 23:03:14 +03:00
parent acc8f529ef
commit cc538aa18a
2 changed files with 15 additions and 13 deletions

View file

@ -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();
}