Files

> > CS2D > Lua Scripts > [LuaJIT/LuaFFI] Fix for os.clock
Files overviewCS2D overviewLua Scripts overview

English [LuaJIT/LuaFFI] Fix for os.clock >

8 comments908 b, 563 Downloads

old [LuaJIT/LuaFFI] Fix for os.clock

Starkkz
Moderator Off Offline

Some of you might not have noticed it yet but the way that os.clock works on Linux is much different than it does on windows even in normal Lua 5.1. It just counts the time that the cpu has been running while it skips the sleep/vsync delay time. This replacement should fix that and it would make it work exactly like in Windows.

Installation is normal, just extract it and it'll be working.
edited 1×, last 28.07.15 02:21:22 pm
Approved by Sparty

Download Download

908 b, 563 Downloads

Comments

8 comments
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

mrc
User Off Offline

LUA ERROR: sys/lua/autorun/main.lua:3: attempt to index global 'jit' (a nil value)

old

SpriNG
User Off Offline

Nice job.
I like it!

old

Marcell
Super User Off Offline

Nice, good to see you working hard on these LuaJIT stuffs.
I like it!

old

BcY
Reviewer Off Offline

Again thanks for solving the problem.
I like it!

old

GeoB99
Moderator Off Offline

Seems very useful to cover the bug about os.clock. Nice job anyway.

old

Infinite Rain
Reviewer Off Offline

Very useful, thanks.
I like it!

old

sheeL
User Off Offline

Awesome!
Nice job.
I like it!
To the start Previous 1 Next To the start