Category talk:Wren-date: Difference between revisions

Content added Content deleted
m (→‎Source code: Added quotes to 'lang' attribute.)
m (→‎Source code: Typo in comment.)
Line 747: Line 747:
/* Stopwatch enables one to easily time events. */
/* Stopwatch enables one to easily time events. */
class Stopwatch {
class Stopwatch {
// Times the execution of a fumction returning the duration it took to execute.
// Times the execution of a function returning the duration it took to execute.
static time(fn) {
static time(fn) {
var sw = Stopwatch.new()
var sw = Stopwatch.new()