Moved the now-deprecated TIMED_ACTIONS macro to deprecated-utils.cfg.
This commit is contained in:
parent
b6e15aaaf3
commit
5e732fa434
2 changed files with 32 additions and 32 deletions
|
@ -11,38 +11,6 @@
|
|||
[/message]
|
||||
#enddef
|
||||
|
||||
#define TIME_ACTIONS CONTENT_WML
|
||||
# Messing with the variable is annoying, so I'll deprecate this in favour of
|
||||
# TIMED_ACTIONS (below)
|
||||
{DEPRECATE TIME_ACTIONS 1.9.4}
|
||||
|
||||
# Measure (in milliseconds) the time arbitrary event WML takes to
|
||||
# execute. Afterwards, the time the enclosed WML took to execute
|
||||
# is found in the variable $timed_actions_ms.
|
||||
#
|
||||
# Example:
|
||||
#! [event]
|
||||
#! name=start
|
||||
#!
|
||||
#! {TIME_ACTIONS (
|
||||
#! {MODIFY_UNIT race=orc name ( _ "Azir")}
|
||||
#! )}
|
||||
#!
|
||||
#! {DEBUG_MSG "Renaming all orcs to Azir took $timed_actions_ms|ms."}
|
||||
#! [/event]
|
||||
{VARIABLE_OP TIME_ACTIONS_time_begin time stamp}
|
||||
|
||||
{CONTENT_WML}
|
||||
|
||||
{VARIABLE_OP TIME_ACTIONS_time_end time stamp}
|
||||
|
||||
{VARIABLE timed_actions_ms $TIME_ACTIONS_time_end}
|
||||
{VARIABLE_OP timed_actions_ms add "-$TIME_ACTIONS_time_begin"}
|
||||
|
||||
{CLEAR_VARIABLE TIME_ACTIONS_time_begin}
|
||||
{CLEAR_VARIABLE TIME_ACTIONS_time_end}
|
||||
#enddef
|
||||
|
||||
#define TIMED_ACTIONS TITLE CONTENT_WML
|
||||
# Measure (in milliseconds) the time arbitrary event WML takes to
|
||||
# execute.
|
||||
|
|
|
@ -37,3 +37,35 @@
|
|||
image={IMAGE}
|
||||
[/item]
|
||||
#enddef
|
||||
|
||||
#define TIME_ACTIONS CONTENT_WML
|
||||
# Messing with the variable is annoying, so I'll deprecate this in favour of
|
||||
# TIMED_ACTIONS
|
||||
{DEPRECATE TIME_ACTIONS 1.9.4}
|
||||
|
||||
# Measure (in milliseconds) the time arbitrary event WML takes to
|
||||
# execute. Afterwards, the time the enclosed WML took to execute
|
||||
# is found in the variable $timed_actions_ms.
|
||||
#
|
||||
# Example:
|
||||
#! [event]
|
||||
#! name=start
|
||||
#!
|
||||
#! {TIME_ACTIONS (
|
||||
#! {MODIFY_UNIT race=orc name ( _ "Azir")}
|
||||
#! )}
|
||||
#!
|
||||
#! {DEBUG_MSG "Renaming all orcs to Azir took $timed_actions_ms|ms."}
|
||||
#! [/event]
|
||||
{VARIABLE_OP TIME_ACTIONS_time_begin time stamp}
|
||||
|
||||
{CONTENT_WML}
|
||||
|
||||
{VARIABLE_OP TIME_ACTIONS_time_end time stamp}
|
||||
|
||||
{VARIABLE timed_actions_ms $TIME_ACTIONS_time_end}
|
||||
{VARIABLE_OP timed_actions_ms add "-$TIME_ACTIONS_time_begin"}
|
||||
|
||||
{CLEAR_VARIABLE TIME_ACTIONS_time_begin}
|
||||
{CLEAR_VARIABLE TIME_ACTIONS_time_end}
|
||||
#enddef
|
Loading…
Add table
Reference in a new issue