You are viewing a potentially older version of this package. View all versions.
creator-Time_Elapsing_Console_Library-1.1.1 icon

Time Elapsing Console Library

This mod essentially enables the ability show Elapsed Time in a nice way within BepInEx.

Date uploaded 9 months ago
Version 1.1.1
Download link creator-Time_Elapsing_Console_Library-1.1.1.zip
Downloads 949
Dependency string creator-Time_Elapsing_Console_Library-1.1.1

This mod requires the following mods to function

BepInEx-BepInExPack_Inscryption-5.4.1902 icon
BepInEx-BepInExPack_Inscryption

BepInEx pack for Inscryption. Preconfigured and ready to use.

Preferred version: 5.4.1902

README

Time Elapsing Console Plugin

This mod essentially enables the ability show Elapsed Time in a nice way within BepInEx.

Functions;

This mod Includes 6 Nifty functions.

  • [OUTDATED] WaitType; This function waits for a set amount of time determined by an Integer, and a string which associates with a value.
  • SwitchToUnits: Takes a time Unit and converts it into a simplified string.
  • StartWaitTime: Takes three strings representing; What is being waited for, the Unit of Time, and the mod's name thats calling it.
  • StopWaitTime: Takes the returned Info from Start to stop the logging.
  • GetTimeFromType: Gets the time unit from the passed Unit of Time and a TimeSpan.
  • HandleStopwatch: A function that takes a string representing the action and a stopwatch and handles the stop watch.

Defining The Function Variables;

Unit of Time table:

Unit Simplified Elongated
Milli-seconds ms millisecond
Seconds s second
Minutes m minute
Hours h hour
Days d day
Ticks t ticks

Actions for HandleStopwatch:

Action What it will do
Start Starts the passed stop watch.
Stop Stops the passed stop watch.
Reset Resets the passed stop watch to 0.
Restart Restarts the passed stop watch back to 0.
Elapsed Gets the TimeSpan that has elapsed from the passed stop watch.

Maintaining and or Updating/Porting:

Send a PR to the repository if you would like to update the mod in any way shape or form.

Porting is allowed as long as proper and full credits are instated and the provided License is KEPT.

If you would like this mod/lib added into your community shoot me a message over on Discord at @thincreator3483

Also while im at it, if anything here is inaccurate and or needs changes lemme know ^^

Credits:

As of 1.1.1

  • Creator - All of the Plugins code, as well as everything else associated with the mod.

CHANGELOG

Changelog

1.0.0 - Initial Release

  • First release of the Mod onto Thunderstore.

1.1.0 - Stop Watches

  • Converted to a Stop Watch system as suggested by BuilderB from FluxPoint.
  • Classes are no longer Async and are now Static.
  • Got rid of a function that did not work and marked the Async and Static Waits as well as the Waiting class Obsolete as it is outdated.
  • Fixed a readme typo and updated it.
  • Probably more things I forgot about.
  • RIIIGHHHT,,, I FIXED THE LOGGING TO SHOW WHEN CALLED!!!!

1.1.1 - Bug Fixes

  • Fixed a bug where Info was undefinable.
  • Fixed a typo in the readme.