default.txt 343 B

1234567891011121314151617181920
  1. use "collections"
  2. class StopWatch
  3. """
  4. A simple stopwatch class for performance micro-benchmarking
  5. """
  6. var _s: U64 = 0
  7. fun delta(): U64 =>
  8. Time.nanos() - _s
  9. actor LonelyPony
  10. """
  11. A simple manifestation of the lonely pony problem
  12. """
  13. var env: Env
  14. let sw: StopWatch = StopWatch
  15. new create(env': Env) =>
  16. env = env