We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 073b92a commit c0fac1bCopy full SHA for c0fac1b
include/proxy-wasm/context.h
@@ -231,12 +231,17 @@ class ContextBase : public RootInterface,
231
}
232
uint32_t getLogLevel() override { return static_cast<uint32_t>(LogLevel::info); }
233
uint64_t getCurrentTimeNanoseconds() override {
234
+#if !defined(_MSC_VER)
235
struct timespec tpe;
236
clock_gettime(CLOCK_REALTIME, &tpe);
237
uint64_t t = tpe.tv_sec;
238
t *= 1000000000;
239
t += tpe.tv_nsec;
240
return t;
241
+#else
242
+ unimplemented();
243
+ return 0;
244
+#endif
245
246
std::string_view getConfiguration() override {
247
unimplemented();
0 commit comments