|
uint64_t | cutl::timestamp (timeunit unit) |
| Get current timestamp.
|
|
uint64_t | cutl::clocktime (timeunit unit) |
| Get current clock time for monotone increment time.
|
|
uint64_t | cutl::ms2s (uint64_t time) |
| Convert time from milliseconds to seconds.
|
|
uint64_t | cutl::us2s (uint64_t time) |
| Convert time from microseconds to seconds.
|
|
uint64_t | cutl::us2ms (uint64_t time) |
| Convert time from seconds to milliseconds.
|
|
uint64_t | cutl::s2ms (uint64_t time) |
| Convert time from seconds to microseconds.
|
|
uint64_t | cutl::s2us (uint64_t time) |
| Convert time from seconds to microseconds.
|
|
uint64_t | cutl::ms2us (uint64_t time) |
| Convert time from milliseconds to microseconds.
|
|
Common time utilities.
- Copyright
- Copyright (c) 2024, Spencer.Luo. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations.
- Author
- spencer.luo
- Date
- 2024-05-13