[turbine] Add TimeMs alias to uint64_t

This commit is contained in:
2024-06-01 13:58:46 -05:00
parent 7472834ef8
commit e008416d08
4 changed files with 11 additions and 6 deletions

View File

@ -14,6 +14,8 @@
namespace turbine {
using TimeMs = uint64_t;
ox::Result<ContextUPtr> init(ox::UPtr<ox::FileSystem> &&fs, ox::CRStringView appName) noexcept;
ox::Error run(Context &ctx) noexcept;
@ -21,7 +23,7 @@ ox::Error run(Context &ctx) noexcept;
// Returns the number of milliseconds that have passed since the start of the
// program.
[[nodiscard]]
uint64_t ticksMs(Context const&ctx) noexcept;
TimeMs ticksMs(Context const&ctx) noexcept;
void requestShutdown(Context &ctx) noexcept;