Repository navigation
Conversation
agent_end 中用 (liii date-time) 的 milliseconds-delta 从单调时钟 毫秒差值构建 time-delta(h/m/s 分量由 goldfish 负责进位), %format-duration 改为从 time-delta 分量读回并格式化,替代原先 对裸秒数的手工进位。 依赖 goldfish 新增的 milliseconds-delta(MoganLab/goldfish#1767), 需在 goldfish 发版后合并。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
tps 扩展的耗时处理改为:用
(liii date-time)的milliseconds-delta从单调时钟毫秒差值构建 time-delta,再由%format-duration从分量读回格式化。h/m/s 进位逻辑收敛到 goldfish,tps.scm 不再对裸秒数做手工进位。依赖
milliseconds-delta:MoganLab/goldfish#1767。需在 goldfish 发版(含该函数)后合并,否则运行时会报 unbound variable。本 PR 先置为 draft,待 goldfish 发版后转 ready。
改动
agent_end:(elapsed-dt (milliseconds-delta elapsed-ms))构建 time-delta%format-duration:改为接收 time-delta,从time-delta-hours/minutes/seconds分量读回并格式化测试
用含新函数的 goldfish bin/gf 运行
tests/liii/pi/extensions/tps-test.scm通过。输出格式保持不变:29.4s/1m30s/12m/1h5m。