cfad47cfa3/t3compiler/tads3/test/data/pi.t
| 4b825dc642cb6eb9a060e54bf8d69288fbee4904 | cfad47cfa334b206c65f22086bcc5d63e6f70944 | ||
|---|---|---|---|
1 | #include <tads.h> | ||
2 | #include <BigNum.h> | ||
3 | |||
4 | main(args) | ||
5 | { | ||
6 | local t0 = getTime(GetTimeTicks); | ||
7 | local x = BigNumber.getPi(512); | ||
8 | local t1 = getTime(GetTimeTicks); | ||
9 | "x = <<x.formatString(512)>>\n"; | ||
10 | "delta-t = <<t1 - t0>> millseconds (<<(t1-t0)/1000>> seconds)\n"; | ||
11 | } |
Download diff