eyeglass-timer
Time your sass. Find the slow parts.
Last updated 6 years ago by chriseppstein .
Apache License 2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install eyeglass-timer 
SYNC missed versions from official npm registry.

Eyeglass Timer

Allows you to time your Sass code to the nearest millisecond.

To use it in your eyeglass project:

$ npm install --save eyeglass-timer

Then in your Sass file(s):

@import "timer";

$timer: timer-start();

// Do something complicated

/*! Complicated thing took: #{elapsed-time($timer)} */

API

  • current-time-ms() - returns the current time in milliseconds since the epoch.
  • timer-start() - returns the time the timer was started.
  • elapsed-time($start-time) - returns the delta since the timer was started.
  • $timer-imported-at - The time the timer module was first imported.

Caveats

This only times the execution of your Sass file. The Sass parse and CSS generation time, as well as the timing of some Sass directives like @extend will happen outside of the execution phase.

Current Tags

  • 1.0.1                                ...           latest (6 years ago)

1 Versions

  • 1.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (11)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |