# 更新日志

## 0.1.4 - 2019/9/4

### Fixed

* 修复模块 setup.py 中对包 stopwatch 的许可证描述不正确的问题。
* 修复包 stopwatch 的模块 \_\_init\_\_.py 的变量 \_\_all\_\_ 数据类型无效的问题。
* 修复模块 setup.py 和 quickstart.py 中存在的代码风格不合规问题。
* 修复包 stopwatch 的模块 \_\_init\_\_.py、watch.py、manager.py 中，存在的代码风格不合规问题。
* 修复包 stopwatch 的模块 \_\_init\_\_.py、watch.py、manager.py 中，存在的注释风格不合规问题。
* 修复类 StopwatchManager 的方法 stops 无条件引发异常 StatusError 的问题。
* 修复类 Stopwatch 的方法 lap 在记录匿名计时记录时引发异常 NameError 的问题。
* 修复类 Stopwatch 的方法 get\_laps 返回值不是数据类型 list 的问题。
* 修复一些细节性问题...

### Added

* 新增名为 tests 的包，现在支持对包 stopwatch 进行单元测试。

## 0.1.3 - 2019/9/3

### Fixed

* 修复类 `Stopwatch` 的方法 `stop` 注释对返回值描述不正确的问题。

### Changed

* 类 `Stopwatch` 的方法 `get_watch`，现在支持在 Stopwatch 实例正在计时的状态下实时获取总计时结果，而不是引发异常 `StatusError`。
* 类 `Stopwatch` 的方法 `lap`，现在支持返回当前计时记录的计时结果。

### Added

* 新增符号名为 `StopwatchNameError` 的异常，指示 Stopwatch 实例唯一名称无效。
* 新增符号名为 `MaxLimitError` 的异常，指示指标超出限制。
* 新增符号名为 `StopwatchManager` 的类，实现 Stopwatch 管理器。
* 新增符号名为 `StopwatchManager` 的类，实现 Stopwatch 管理器。
* 新增符号名为 `default_manager` 的变量，实现默认的 Stopwatch 管理器。
* 类 `Stopwatch` 新增 `has_lap` 方法，现在支持检查指定计时记录是否存在。
* 类 `Stopwatch` 新增 `get_average_of_laps` 方法，现在支持获取所有计时记录的平均计时结果。
* 类 `Stopwatch` 新增 `get_laps` 方法，现在支持枚举所有计时记录的唯一名称。
* 类 `Stopwatch` 新增 `get_lap_count` 方法，现在支持获取计时记录条数。

## 0.1.2 - 2019/9/2

### Fixed

* 修复匿名计时记录的默认命名错误。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://smallso.gitbook.io/stopwatch/python/update-logs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
