Commit 7652e59
committed
feat(logger): add time() method to Logger class
Add the missing time() method to start timers, complementing the existing
timeEnd() and timeLog() methods. This allows users to start timers using
the Logger instance instead of console.time().
- Add time() method with proper TypeScript signature
- Return 'this' for method chaining consistency
- Update timeEnd() documentation to reference logger.time()
- Fix tests to properly start timers before ending them1 parent c234d92 commit 7652e59
2 files changed
Lines changed: 46 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1461 | 1461 | | |
1462 | 1462 | | |
1463 | 1463 | | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
1464 | 1494 | | |
1465 | 1495 | | |
1466 | 1496 | | |
1467 | | - | |
1468 | | - | |
| 1497 | + | |
| 1498 | + | |
1469 | 1499 | | |
1470 | 1500 | | |
1471 | 1501 | | |
1472 | 1502 | | |
1473 | 1503 | | |
1474 | 1504 | | |
1475 | 1505 | | |
1476 | | - | |
| 1506 | + | |
1477 | 1507 | | |
1478 | 1508 | | |
1479 | 1509 | | |
1480 | 1510 | | |
1481 | | - | |
| 1511 | + | |
1482 | 1512 | | |
1483 | 1513 | | |
1484 | 1514 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
| 612 | + | |
612 | 613 | | |
613 | 614 | | |
614 | 615 | | |
615 | 616 | | |
616 | 617 | | |
617 | | - | |
| 618 | + | |
| 619 | + | |
618 | 620 | | |
619 | | - | |
| 621 | + | |
620 | 622 | | |
621 | 623 | | |
622 | 624 | | |
623 | 625 | | |
| 626 | + | |
624 | 627 | | |
625 | 628 | | |
626 | 629 | | |
627 | 630 | | |
628 | 631 | | |
629 | 632 | | |
630 | 633 | | |
| 634 | + | |
631 | 635 | | |
632 | 636 | | |
633 | 637 | | |
| 638 | + | |
634 | 639 | | |
635 | 640 | | |
636 | 641 | | |
| 642 | + | |
637 | 643 | | |
638 | 644 | | |
639 | 645 | | |
| 646 | + | |
640 | 647 | | |
641 | 648 | | |
642 | 649 | | |
| 650 | + | |
643 | 651 | | |
644 | 652 | | |
| 653 | + | |
645 | 654 | | |
646 | 655 | | |
647 | 656 | | |
| |||
1065 | 1074 | | |
1066 | 1075 | | |
1067 | 1076 | | |
| 1077 | + | |
1068 | 1078 | | |
1069 | 1079 | | |
1070 | 1080 | | |
| |||
0 commit comments