timeslice 0.1.0

Simple periodic time slice scheduler
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// -*- coding: utf-8 -*-
//
// Copyright 2023 Michael Büsch <m@bues.ch>
//
// Licensed under the Apache License version 2.0
// or the MIT license, at your option.
// SPDX-License-Identifier: Apache-2.0 OR MIT
//

#[inline]
pub fn now_us() -> i64 {
    let systime = esp_idf_svc::systime::EspSystemTime;
    systime.now().as_micros() as i64
}

// vim: ts=4 sw=4 expandtab