You are browsing as a guest. Sign up (or log in) to start making projects!

WTime

  • 3 Devlogs
  • 2 Total hours

Simple utility that allows you to measure the time a process took to execute, written in rust. example usage: $ wtime python -c "for i in range(543934): print('WTIME IS PEAK')" WTIME IS PEAK WTIME IS PEAK ... #continues until printed 543934 times WTIME IS PEAK Process took: 2 secs It is designed to run the applications directly, and not stuff like echo and so on.

Ship #1 Pending review

GNU Time, but in rust: Simple utility that allows you to measure the time a process took to execute, written in rust. The hard part was to like ensure the command alongside the subcommands were processed. The easiest part was the timing. The code was literally on the documentation of std::time so basically copy pasted that.

  • 3 devlogs
  • 2h
Try project → See source code →
Open comments for this post

44m 37s logged

Finally finished the most minimal implementation of it. It now outputs the time with colors and the resulting binary in windows is ONLY 200 KILOBYTES?! Thx to a bit of release optimizations it prob is even smaller on unix systems!

0
0
5
Open comments for this post

27m 34s logged

The program can now run the commands! I still have to allow the user to like select options (for example, blank was automatically selected, whereas you have multiple options on how to start a project in bun)

0
0
6
Open comments for this post

19m 23s logged

I figured out the std library “Command” which allows me to run commands with subcommands (like flags and so on)

The unused std:env is going to help me parse the inputed commands, so the goal is to get something like:
wtime npm run build

and this should output “stuff” (yet to figure out what)

0
0
22

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…