2024-03-08 11:27:53 +00:00
|
|
|
pub struct FrameCounter {
|
|
|
|
frame,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl FrameCounter {
|
|
|
|
pub fn new() {
|
|
|
|
return FrameCounter {frame: 0};
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn update(self) {
|
|
|
|
self.frame += 1;
|
2024-03-08 11:47:15 +00:00
|
|
|
log::info(`Frame: ${self.frame}`);
|
2024-03-08 11:27:53 +00:00
|
|
|
}
|
|
|
|
}
|