proc/WriteToLog( var/MESSAGE )
{
var timestamp = time2text( world.realtime, "MM/DD/YY hh:mm:ss" )
text2file( "[timestamp]> [MESSAGE]", log_file )
}
Problem description:
I call this function a few times for general log-keeping (beyond general debugging) and I noticed that the timestamp never changes in my output.
Here is the current contents of the file after a trial run:
03/06/13 23:22:01> World initialized.
03/06/13 23:22:01> cauti0n (cauti0n) joined.
03/06/13 23:22:01> cauti0n (cauti0n) left.
03/06/13 23:22:52> World initialized.
03/06/13 23:22:52> cauti0n (cauti0n) joined.
03/06/13 23:22:52> cauti0n (cauti0n) left.
I waited several moments before leaving, so though the world initialization and my joining should be equivalent, my leaving should not be. Does anybody know anything about world.realtime's updating capability, or if I should be using timeofday?
Thanks,
JK