https://github.com/thisdevdane/otime
Rewrite of CTime by Casey Muratori in Odin
https://github.com/thisdevdane/otime
ctime odin odin-programming-language time time-tracking timing tracking
Last synced: 2 months ago
JSON representation
Rewrite of CTime by Casey Muratori in Odin
- Host: GitHub
- URL: https://github.com/thisdevdane/otime
- Owner: ThisDevDane
- License: mit
- Archived: true
- Created: 2017-01-07T16:53:06.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-01-30T19:17:59.000Z (over 5 years ago)
- Last Synced: 2025-03-26T15:29:08.926Z (7 months ago)
- Topics: ctime, odin, odin-programming-language, time, time-tracking, timing, tracking
- Language: Odin
- Size: 42 KB
- Stars: 11
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
This program is a spirital successor for Casey Muratori's Ctime written in Odin
![]()
![]()
![]()
```
otime -stats jaze.otmStats from jaze.otm.
Total timings: 6436.
Total incomplete timings: 107.Timings marked successful (2701):
Slowest: 22.326 seconds
Fastest: 0.046 seconds
Average: 2.443 seconds
Total: 1 hour, 50 minutes, 0.810 secondsTimings marked failed (3628):
Slowest: 1 minute, 46.796 seconds
Fastest: 0.016 seconds
Average: 0.609 seconds
Total: 36 minutes, 52.238 secondsAverage of all groups: 1.369 seconds
Total of all groups: 2 hours, 26 minutes, 53.048 seconds
```
# Usage
Otime will automatically create a file to store the data in when you start timing stuff.
You simply put a `otime -begin foo` and `otime -end foo.otm %err%` around what you're timing, with foo being the filename you want otime to use, and `%err%` being the error code returned by what you're timing, you can omit `%err%` and otime will just assume that the timing was successful.
If want to see all options just write `otime` and it will print them.