diff --git a/lib/components.dart b/lib/components.dart index ae4b7e36d65..2f7046d6ccf 100644 --- a/lib/components.dart +++ b/lib/components.dart @@ -11,6 +11,9 @@ export 'src/components/sprite_component.dart'; export 'src/components/text_box_component.dart'; export 'src/components/text_component.dart'; +export 'src/timer.dart'; +export 'joystick.dart'; + export 'src/components/mixins/draggable.dart'; export 'src/components/mixins/has_game_ref.dart'; export 'src/components/mixins/single_child_particle.dart'; diff --git a/lib/src/profiler.dart b/lib/src/profiler.dart deleted file mode 100644 index a39cb2b720b..00000000000 --- a/lib/src/profiler.dart +++ /dev/null @@ -1,27 +0,0 @@ -class Records { - static void save(Profiler p) { - print('${p.name} : ${p.dts.last - p.dts.first} ms'); - } -} - -class Profiler { - final String name; - List dts = []; - - Profiler(this.name) { - tick(); - } - - void tick() { - dts.add(currentTime()); - } - - void end() { - tick(); - Records.save(this); - } - - static double currentTime() => - DateTime.now().microsecondsSinceEpoch.toDouble() / - Duration.microsecondsPerMillisecond; -} diff --git a/lib/timer.dart b/lib/timer.dart deleted file mode 100644 index b48a455775b..00000000000 --- a/lib/timer.dart +++ /dev/null @@ -1 +0,0 @@ -export 'src/timer.dart';