mirror of
https://github.com/ion232/reticulum-zig.git
synced 2025-12-22 06:37:05 +00:00
core: move system contents and remove dir
This commit is contained in:
@@ -1,7 +1,18 @@
|
||||
const std = @import("std");
|
||||
|
||||
// TODO: Add storage interface.
|
||||
pub const Clock = @import("system/Clock.zig");
|
||||
|
||||
pub const Clock = struct {
|
||||
const Self = @This();
|
||||
|
||||
ptr: *anyopaque,
|
||||
monotonicMicrosFn: *const fn (ptr: *anyopaque) u64,
|
||||
|
||||
pub fn monotonicMicros(self: *Self) u64 {
|
||||
return self.monotonicMicrosFn(self.ptr);
|
||||
}
|
||||
};
|
||||
|
||||
pub const Rng = std.Random;
|
||||
|
||||
clock: Clock,
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
const Self = @This();
|
||||
|
||||
ptr: *anyopaque,
|
||||
monotonicMicrosFn: *const fn (ptr: *anyopaque) u64,
|
||||
|
||||
pub fn monotonicMicros(self: *Self) u64 {
|
||||
return self.monotonicMicrosFn(self.ptr);
|
||||
}
|
||||
Reference in New Issue
Block a user