aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/timeval.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/node/timeval.h')
-rw-r--r--src/node/timeval.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/node/timeval.h b/src/node/timeval.h
new file mode 100644
index 0000000000..a350a09b00
--- /dev/null
+++ b/src/node/timeval.h
@@ -0,0 +1,15 @@
+#ifndef NET_GRPC_NODE_TIMEVAL_H_
+#define NET_GRPC_NODE_TIMEVAL_H_
+
+#include "grpc/support/time.h"
+
+namespace grpc {
+namespace node {
+
+double TimespecToMilliseconds(gpr_timespec time);
+gpr_timespec MillisecondsToTimespec(double millis);
+
+} // namespace node
+} // namespace grpc
+
+#endif // NET_GRPC_NODE_TIMEVAL_H_