diff options
author | Matthew Wild <mwild1@gmail.com> | 2016-06-28 14:54:43 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2016-06-28 14:54:43 +0100 |
commit | 5d19b7d42da48ad8fba532642af3cd5eb87798b1 (patch) | |
tree | 73fd2c6aa04110f6c834f99d5de79c9510ccaf26 /util/time.lua | |
parent | 5d9768626dd51c4d979c4c0878b707a8b3dbc0fa (diff) | |
parent | 8afacb5d92d6098f6eb85bbc32aff5632983bd5d (diff) | |
download | prosody-5d19b7d42da48ad8fba532642af3cd5eb87798b1.tar.gz prosody-5d19b7d42da48ad8fba532642af3cd5eb87798b1.zip |
Merge 0.10->trunk
Diffstat (limited to 'util/time.lua')
-rw-r--r-- | util/time.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/util/time.lua b/util/time.lua new file mode 100644 index 00000000..84cff877 --- /dev/null +++ b/util/time.lua @@ -0,0 +1,8 @@ +-- Import gettime() from LuaSocket, as a way to access high-resolution time +-- in a platform-independent way + +local socket_gettime = require "socket".gettime; + +return { + now = socket_gettime; +} |