Repository navigation
Performance
imshooter edited this page Nov 26, 2026
·
2 revisions
Measured on one computer, with pawn-chrono and chrono-omp on the same open.mp server and the same script, compiled with -d2. Each call was made 100000 times, three times over.
| Call | pawn-chrono | chrono-omp |
|---|---|---|
Now |
0.03 µs | 0.03 µs |
TimeFormat in UTC |
3.4 µs | 0.46 µs |
TimeFormat in the zone of the server |
0.33 µs | |
TimeParse |
2.4 µs | 0.38 µs |
DurationParse |
0.66 µs | 0.32 µs |
DurationFormat |
0.77 µs | 0.25 µs |
pawn-chrono writes and reads through the streams of C++. chrono-omp writes and reads the specifiers itself, and keeps the offset of each zone for as long as it holds, so a time in a zone costs no more than one in UTC.
GetTimestampDate takes 0.12 µs.
Chrono 0.2.0 · Repository · Releases · MIT License
Guides
Reference
Functions