Commit fd9a0c8b authored by Harmonikater's avatar Harmonikater
Browse files

Add timestamp to objects lm progress

parent 81e73000
Pipeline #5491 passed with stage
in 31 seconds
......@@ -362,10 +362,18 @@ fn bf2LightmapsRenderBatch outDir_1 sceneRoots:undefined multiplePCs:#(1,1) show
local timeLeft = totalTimeEst - secondsElapsed
local hours = ((timeStamp() / 3600000) as integer)
local minutes = ((timeStamp() / 60000) as integer)
minutes = minutes - hours*60
local prettyTime = ""
if hours < 10 do prettyTime = prettyTime + "0"
prettyTime = prettyTime + (hours as string) + ":"
if minutes < 10 do prettyTime = prettyTime + "0"
prettyTime = prettyTime + (minutes as string)
if timeLeft > 120 then
LM_log (" " + (((timeLeft / 60) as integer) as string) + " mins remaining")
LM_log (" " + prettyTime + " " + (((timeLeft / 60) as integer) as string) + " mins remaining")
else
LM_log (" " + ((timeLeft as integer) as string) + " seconds remaining")
LM_log (" " + prettyTime + " " + ((timeLeft as integer) as string) + " seconds remaining")
)
)
if g_bf2lightmap_progress != -1 then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment