blob: 2ed07d35656d32d633118f7cf0addf61d0c7b543 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
#include "WAVM/Inline/Assert.h"
#include "WAVM/Inline/BasicTypes.h"
#include "WAVM/Inline/Time.h"
namespace WAVM { namespace Platform {
enum class Clock
{
// The real-time since 1970/1/1 00:00:00 UTC.
realtime,
// A clock with an arbitrary origin that monotonically increases, and so may be used as an
// absolute time for wait timeouts.
monotonic,
// The amount of CPU time used by this process.
processCPUTime
};
WAVM_API Time getClockTime(Clock clock);
WAVM_API Time getClockResolution(Clock clock);
}}
|