getTime.lua 456 B

1234567891011121314151617181920212223
  1. return {
  2. summary = 'Get the current time.',
  3. description = [[
  4. Returns the time since some time in the past. This can be used to measure the difference
  5. between two points in time.
  6. ]],
  7. arguments = {},
  8. returns = {
  9. time = {
  10. type = 'number',
  11. description = 'The current time, in seconds.'
  12. }
  13. },
  14. variants = {
  15. {
  16. arguments = {},
  17. returns = { 'time' }
  18. }
  19. },
  20. related = {
  21. 'lovr.headset.getTime'
  22. }
  23. }